From nobody Thu Apr 3 10:29:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1742981734; cv=none; d=zohomail.com; s=zohoarc; b=Ore1BVD756h05gZAw5QvS7x1/grXwnM+YxlGBq3Zo73WXvFQUcusIm893sDkoKcyhM8H+WIx5Fk3A8oY3LXxJ8Vgu/ZnOUFIpYAwpAZkxBnEjKA+8+lZYxFjBOpT5jWg+b4dGWXpyqKqKhiLMtmyUmlCuhiAzGXDikVh2pMxXzM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742981734; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dhtailQ7Al3m+Hnv6ZcWWutKFcS73lvQuxI+xweqSDk=; b=RTxj7oVOk/i9qO2MtBwGNWxdJsx1jy08h49tpaq/CYA2WitqJtk5fTslbJiZuleH5PwmlvkmlfQrg98SfWHONzgfovYjJG4FL8VEfEN9AMAhnwWuLSy9PtCg/E9tRXlfY8aPkyoXXGc0GPtxHjP8Dj4SgBCNghwfpWsEc4tzyEg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1742981734672991.2117174647112; Wed, 26 Mar 2025 02:35:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1txN9y-0000zC-K7; Wed, 26 Mar 2025 05:34:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txN9s-0000ye-Cm for qemu-devel@nongnu.org; Wed, 26 Mar 2025 05:34:48 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1txN9q-0003XC-6p for qemu-devel@nongnu.org; Wed, 26 Mar 2025 05:34:48 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-227b828de00so62259475ad.1 for ; Wed, 26 Mar 2025 02:34:45 -0700 (PDT) Received: from localhost.localdomain (awork062150.netvigator.com. [203.198.28.150]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-73905fd57f7sm11729684b3a.44.2025.03.26.02.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Mar 2025 02:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742981684; x=1743586484; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dhtailQ7Al3m+Hnv6ZcWWutKFcS73lvQuxI+xweqSDk=; b=hD0FUN1t6JHiLRPvbHKEImov8BFzbANoZ2W4TLa4vzIZSKJxRsipVMPCwpObA71nE0 jpjde0W3DhhrvKPKwBmrqQzsfXsO5d7B/ehkoV+fmx1gqWRLhFhnWAbwEyHYYRr789It P+T0hgNE39iBEdFVxWIUaUD3jaZxbW4fZlHFbioiuuDp2c+5OQXvyQmIYXmRQ34zHDTe Ff7unuE+9lQg5IAjZyD4pAqbyvBGgj7fW2r4k2zeIzRzP/qrYbYcN4HaCE6fnNnLJ/j7 89S4cXDYpVIufPKvvBIAWpvBiJ4zCeCtggwrWOWMBTUmXo9Xdej2QyMjrgacGoI/Nxew 5qBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742981684; x=1743586484; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dhtailQ7Al3m+Hnv6ZcWWutKFcS73lvQuxI+xweqSDk=; b=MU/JxLIjljC5CtKSTiVDI8zQWYxLG1m/nQ/B0HScH+kjvmarPaGjC875YI359omtXl Dgl6I9r+ru+1J8l1YV4owdq4D/S2jnvJDNFBV95EbYcQ1UVkqauhgv/yH5FWK/OvV+DH a0htdhKxI+Kv4eqKTBCN+Yc3QTGp42ker0nFs0IEaLoRow2Rw+SKHwIx0oMJYnd3OfTI LFmq/pCuRXRT7xh6e38t0sxL73hz6bv8k6EApzxE4cqBN/pJX3Yuj7YVSTf2AWdAcgdU F2cloTf8KKtIUsloVZ0MqwUYQJN5oRmpkgAN3st5CaBYWIH3t0L2GkM08MB1jZuCP2Jd 3l/w== X-Gm-Message-State: AOJu0YyBZio1QsvR2Ggy6haq+4Vtiuox3zRazRx+3tsiCJ/oK5fIhfVs hmLfrgU2Yylvq+lGQ1rNBWrB6/rw8NhGmKkM6AA9JAJGHuPL4qX+AXZwW48+ X-Gm-Gg: ASbGncs/vb6sYSTx0uefYHZ1diHnEAiECtJ3o8Lr3V2I1NuqwGXAFk8mFdLNJxdEqZJ VcKS8rFK4oWZpkThM4Qc1xeGNoXnUH4mVBzh6Ko3zFvHZrbFS1z7sTt8VPky3GQLkqgJDOOI6FG mCSi4ucL/4SO4oK9EpbP1Ss3ofj+v4Ae4fJVl2YLWf6V++cuFSD1Lfomfl0/ziqST5x510rv+4R i+z5+cichCRG2TGUuVjBh+ib9UHsjENDiQZVu9odWPOMTzAKX0X/QbKt4J7X87Xfa3ew5FkWgoP vRDCKSens9L6TYh6i8/BncI+F/tVJhCH3YAfVLgIYqN4eRJ7ZCOJiqE8xWZSwr9xgPb+w24a/2J 7KhSlVfBW1X21su7kpqdG X-Google-Smtp-Source: AGHT+IEb7oIzpxmEDQaLoS1jily73MZ2+hgsSe1LVGWx75obOqykmQZMeix/n1Q4boMl0No/ZHxgSA== X-Received: by 2002:a05:6a00:2d91:b0:736:8c0f:774f with SMTP id d2e1a72fcca58-73905a50265mr25969859b3a.22.1742981684130; Wed, 26 Mar 2025 02:34:44 -0700 (PDT) From: yuq825@gmail.com To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Qiang Yu Subject: [PATCH v2 4/6] ui/egl: support multi-plane dmabuf when egl export/import Date: Wed, 26 Mar 2025 17:34:16 +0800 Message-ID: <20250326093418.397269-5-yuq825@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250326093418.397269-1-yuq825@gmail.com> References: <20250326093418.397269-1-yuq825@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=yuq825@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1742981737125019000 Content-Type: text/plain; charset="utf-8" From: Qiang Yu v2: * use new dmabuf API and check length Signed-off-by: Qiang Yu Reviewed-by: Marc-Andr=C3=A9 Lureau --- include/ui/egl-helpers.h | 5 ++- ui/dbus-listener.c | 19 +++++---- ui/egl-helpers.c | 91 ++++++++++++++++++++++++++++++---------- ui/spice-display.c | 58 ++++++++++++++++--------- 4 files changed, 121 insertions(+), 52 deletions(-) diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index 4b8c0d2281..fb80e15142 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -46,8 +46,9 @@ extern int qemu_egl_rn_fd; extern struct gbm_device *qemu_egl_rn_gbm_dev; =20 int egl_rendernode_init(const char *rendernode, DisplayGLMode mode); -int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc, - EGLuint64KHR *modifier); +bool egl_dmabuf_export_texture(uint32_t tex_id, int *fd, EGLint *offset, + EGLint *stride, EGLint *fourcc, int *num_pl= anes, + EGLuint64KHR *modifier); =20 void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf); void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf); diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c index 65373d519c..90147972cd 100644 --- a/ui/dbus-listener.c +++ b/ui/dbus-listener.c @@ -504,19 +504,22 @@ static void dbus_scanout_texture(DisplayChangeListene= r *dcl, backing_width, backing_height, x, y, w, h); #ifdef CONFIG_GBM g_autoptr(QemuDmaBuf) dmabuf =3D NULL; - int fd; - uint32_t offset =3D 0, stride, fourcc; + int fd[DMABUF_MAX_PLANES], num_planes; + uint32_t offset[DMABUF_MAX_PLANES], stride[DMABUF_MAX_PLANES], fourcc; uint64_t modifier; =20 assert(tex_id); - fd =3D egl_get_fd_for_texture(tex_id, (EGLint *)&stride, (EGLint *)&fo= urcc, - &modifier); - if (fd < 0) { - error_report("%s: failed to get fd for texture", __func__); + if (!egl_dmabuf_export_texture(tex_id, fd, (EGLint *)offset, (EGLint *= )stride, + (EGLint *)&fourcc, &num_planes, &modifi= er)) { + error_report("%s: failed to export dmabuf for texture", __func__); + return; + } + if (num_planes > 1) { + error_report("%s: does not support multi-plane dmabuf", __func__); return; } - dmabuf =3D qemu_dmabuf_new(w, h, &offset, &stride, x, y, backing_width, - backing_height, fourcc, modifier, &fd, 1, + dmabuf =3D qemu_dmabuf_new(w, h, offset, stride, x, y, backing_width, + backing_height, fourcc, modifier, fd, num_pla= nes, false, backing_y_0_top); =20 dbus_scanout_dmabuf(dcl, dmabuf); diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index 8c0e394d2b..f76d0c04a2 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-helpers.c @@ -283,44 +283,85 @@ err: return -1; } =20 -int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc, - EGLuint64KHR *modifier) +bool egl_dmabuf_export_texture(uint32_t tex_id, int *fd, EGLint *offset, + EGLint *stride, EGLint *fourcc, int *num_pl= anes, + EGLuint64KHR *modifier) { EGLImageKHR image; - EGLint num_planes, fd; + EGLuint64KHR modifiers[DMABUF_MAX_PLANES]; =20 image =3D eglCreateImageKHR(qemu_egl_display, eglGetCurrentContext(), EGL_GL_TEXTURE_2D_KHR, (EGLClientBuffer)(unsigned long)tex_id, NULL); if (!image) { - return -1; + return false; } =20 eglExportDMABUFImageQueryMESA(qemu_egl_display, image, fourcc, - &num_planes, modifier); - if (num_planes !=3D 1) { - eglDestroyImageKHR(qemu_egl_display, image); - return -1; - } - eglExportDMABUFImageMESA(qemu_egl_display, image, &fd, stride, NULL); + num_planes, modifiers); + eglExportDMABUFImageMESA(qemu_egl_display, image, fd, stride, offset); eglDestroyImageKHR(qemu_egl_display, image); =20 - return fd; + /* Only first modifier matters. */ + if (modifier) + *modifier =3D modifiers[0]; + + return true; } =20 void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf) { EGLImageKHR image =3D EGL_NO_IMAGE_KHR; EGLint attrs[64]; - int i =3D 0; + int i =3D 0, j; uint64_t modifier =3D qemu_dmabuf_get_modifier(dmabuf); uint32_t texture =3D qemu_dmabuf_get_texture(dmabuf); + int nfds, noffsets, nstrides; + const int *fds =3D qemu_dmabuf_get_fds(dmabuf, &nfds); + const uint32_t *offsets =3D qemu_dmabuf_get_offsets(dmabuf, &noffsets); + const uint32_t *strides =3D qemu_dmabuf_get_strides(dmabuf, &nstrides); + uint32_t num_planes =3D qemu_dmabuf_get_num_planes(dmabuf); + + EGLint fd_attrs[] =3D { + EGL_DMA_BUF_PLANE0_FD_EXT, + EGL_DMA_BUF_PLANE1_FD_EXT, + EGL_DMA_BUF_PLANE2_FD_EXT, + EGL_DMA_BUF_PLANE3_FD_EXT, + }; + EGLint offset_attrs[] =3D { + EGL_DMA_BUF_PLANE0_OFFSET_EXT, + EGL_DMA_BUF_PLANE1_OFFSET_EXT, + EGL_DMA_BUF_PLANE2_OFFSET_EXT, + EGL_DMA_BUF_PLANE3_OFFSET_EXT, + }; + EGLint stride_attrs[] =3D { + EGL_DMA_BUF_PLANE0_PITCH_EXT, + EGL_DMA_BUF_PLANE1_PITCH_EXT, + EGL_DMA_BUF_PLANE2_PITCH_EXT, + EGL_DMA_BUF_PLANE3_PITCH_EXT, + }; + EGLint modifier_lo_attrs[] =3D { + EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT, + EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT, + EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT, + EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT, + }; + EGLint modifier_hi_attrs[] =3D { + EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT, + EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT, + EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT, + EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT, + }; =20 if (texture !=3D 0) { return; } =20 + assert(nfds >=3D num_planes); + assert(noffsets >=3D num_planes); + assert(nstrides >=3D num_planes); + attrs[i++] =3D EGL_WIDTH; attrs[i++] =3D qemu_dmabuf_get_backing_width(dmabuf); attrs[i++] =3D EGL_HEIGHT; @@ -328,18 +369,22 @@ void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf) attrs[i++] =3D EGL_LINUX_DRM_FOURCC_EXT; attrs[i++] =3D qemu_dmabuf_get_fourcc(dmabuf); =20 - attrs[i++] =3D EGL_DMA_BUF_PLANE0_FD_EXT; - attrs[i++] =3D qemu_dmabuf_get_fds(dmabuf, NULL)[0]; - attrs[i++] =3D EGL_DMA_BUF_PLANE0_PITCH_EXT; - attrs[i++] =3D qemu_dmabuf_get_strides(dmabuf, NULL)[0]; - attrs[i++] =3D EGL_DMA_BUF_PLANE0_OFFSET_EXT; - attrs[i++] =3D 0; - if (modifier !=3D DRM_FORMAT_MOD_INVALID) { - attrs[i++] =3D EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT; - attrs[i++] =3D (modifier >> 0) & 0xffffffff; - attrs[i++] =3D EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT; - attrs[i++] =3D (modifier >> 32) & 0xffffffff; + for (j =3D 0; j < num_planes; j++) { + attrs[i++] =3D fd_attrs[j]; + /* fd[1-3] may be -1 if using a joint buffer for all planes */ + attrs[i++] =3D fds[j] >=3D 0 ? fds[j] : fds[0]; + attrs[i++] =3D stride_attrs[j]; + attrs[i++] =3D strides[j]; + attrs[i++] =3D offset_attrs[j]; + attrs[i++] =3D offsets[j]; + if (modifier !=3D DRM_FORMAT_MOD_INVALID) { + attrs[i++] =3D modifier_lo_attrs[j]; + attrs[i++] =3D (modifier >> 0) & 0xffffffff; + attrs[i++] =3D modifier_hi_attrs[j]; + attrs[i++] =3D (modifier >> 32) & 0xffffffff; + } } + attrs[i++] =3D EGL_NONE; =20 image =3D eglCreateImageKHR(qemu_egl_display, diff --git a/ui/spice-display.c b/ui/spice-display.c index 40547edb5e..d7ebb3682d 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -876,19 +876,24 @@ static void spice_gl_switch(DisplayChangeListener *dc= l, struct DisplaySurface *new_surface) { SimpleSpiceDisplay *ssd =3D container_of(dcl, SimpleSpiceDisplay, dcl); - EGLint stride, fourcc; - int fd; =20 if (ssd->ds) { surface_gl_destroy_texture(ssd->gls, ssd->ds); } ssd->ds =3D new_surface; if (ssd->ds) { + uint32_t offset[DMABUF_MAX_PLANES], stride[DMABUF_MAX_PLANES]; + int fd[DMABUF_MAX_PLANES], num_planes, fourcc; + surface_gl_create_texture(ssd->gls, ssd->ds); - fd =3D egl_get_fd_for_texture(ssd->ds->texture, - &stride, &fourcc, - NULL); - if (fd < 0) { + if (!egl_dmabuf_export_texture(ssd->ds->texture, fd, (EGLint *)off= set, + (EGLint *)stride, &fourcc, &num_pla= nes, NULL)) { + surface_gl_destroy_texture(ssd->gls, ssd->ds); + return; + } + + if (num_planes > 1) { + fprintf(stderr, "%s: does not support multi-plane texture\n", = __func__); surface_gl_destroy_texture(ssd->gls, ssd->ds); return; } @@ -899,10 +904,10 @@ static void spice_gl_switch(DisplayChangeListener *dc= l, fourcc); =20 /* note: spice server will close the fd */ - spice_qxl_gl_scanout(&ssd->qxl, fd, + spice_qxl_gl_scanout(&ssd->qxl, fd[0], surface_width(ssd->ds), surface_height(ssd->ds), - stride, fourcc, false); + stride[0], fourcc, false); ssd->have_surface =3D true; ssd->have_scanout =3D false; =20 @@ -941,20 +946,24 @@ static void qemu_spice_gl_scanout_texture(DisplayChan= geListener *dcl, void *d3d_tex2d) { SimpleSpiceDisplay *ssd =3D container_of(dcl, SimpleSpiceDisplay, dcl); - EGLint stride =3D 0, fourcc =3D 0; - int fd =3D -1; + EGLint offset[DMABUF_MAX_PLANES], stride[DMABUF_MAX_PLANES], fourcc = =3D 0; + int fd[DMABUF_MAX_PLANES], num_planes; =20 assert(tex_id); - fd =3D egl_get_fd_for_texture(tex_id, &stride, &fourcc, NULL); - if (fd < 0) { - fprintf(stderr, "%s: failed to get fd for texture\n", __func__); + if (!egl_dmabuf_export_texture(tex_id, fd, offset, stride, &fourcc, + &num_planes, NULL)) { + fprintf(stderr, "%s: failed to export dmabuf for texture\n", __fun= c__); + return; + } + if (num_planes > 1) { + fprintf(stderr, "%s: does not support multi-plane dmabuf\n", __fun= c__); return; } trace_qemu_spice_gl_scanout_texture(ssd->qxl.id, w, h, fourcc); =20 /* note: spice server will close the fd */ - spice_qxl_gl_scanout(&ssd->qxl, fd, backing_width, backing_height, - stride, fourcc, y_0_top); + spice_qxl_gl_scanout(&ssd->qxl, fd[0], backing_width, backing_height, + stride[0], fourcc, y_0_top); qemu_spice_gl_monitor_config(ssd, x, y, w, h); ssd->have_surface =3D false; ssd->have_scanout =3D true; @@ -1064,15 +1073,26 @@ static void qemu_spice_gl_update(DisplayChangeListe= ner *dcl, /* dest framebuffer */ if (ssd->blit_fb.width !=3D width || ssd->blit_fb.height !=3D height) { + int fds[DMABUF_MAX_PLANES], num_planes; + uint32_t offsets[DMABUF_MAX_PLANES], strides[DMABUF_MAX_PL= ANES]; + trace_qemu_spice_gl_render_dmabuf(ssd->qxl.id, width, height); egl_fb_destroy(&ssd->blit_fb); egl_fb_setup_new_tex(&ssd->blit_fb, width, height); - fd =3D egl_get_fd_for_texture(ssd->blit_fb.texture, - &stride, &fourcc, NULL); - spice_qxl_gl_scanout(&ssd->qxl, fd, width, height, - stride, fourcc, false); + if (!egl_dmabuf_export_texture(ssd->blit_fb.texture, fds, + (EGLint *)offsets, (EGLint = *)strides, + &fourcc, &num_planes, NULL)= ) { + fprintf(stderr, "%s: failed to export dmabuf for textu= re\n", __func__); + return; + } + if (num_planes > 1) { + fprintf(stderr, "%s: does not support multi-plane dmab= uf\n", __func__); + return; + } + spice_qxl_gl_scanout(&ssd->qxl, fds[0], width, height, + strides[0], fourcc, false); } } else { stride =3D qemu_dmabuf_get_strides(dmabuf, NULL)[0]; --=20 2.43.0