From nobody Mon Sep 16 18:57:50 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1721772336; cv=none; d=zohomail.com; s=zohoarc; b=ECBzgfWJciH9+vBLid6iunq/DokaT5cxclH2typ3GIQIUTtmA/MhYekdvy45Vm28srN7zUDu5t7VJj8pmN1sOwYI/sSGRqRdaH9pcXJmsu+As5XmEvnjz/Gkr1m4ae0WCTlc2ZefCTwSRZ49p2GPUwpB1MME0RqRw031/t6qTzI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1721772336; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=VXlLqKEFVvxWFsIrLD4ahn0owa96cNSDmefkweGN3vU=; b=Ays/N1xJWVUWAhFAmuGcgpU7KEyLJ6doOc2aJgRKnI9TOwmwDaS3nveT7XqYHL384gIODfTPO1hdJUotOnFe5Nn41ewbRUUFGhE+Xq6BDVFyYBlx5F6rxWgPM30C+1tU4QU1lS3vJee3KrVnVFzhR6ONigpcOrbQRy9+ahenmw4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1721772336977732.9446502723107; Tue, 23 Jul 2024 15:05:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWNcl-0008DR-6z; Tue, 23 Jul 2024 18:04:47 -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 1sWNci-000880-Uf for qemu-devel@nongnu.org; Tue, 23 Jul 2024 18:04:45 -0400 Received: from mgamail.intel.com ([192.198.163.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWNch-0002Cd-4f for qemu-devel@nongnu.org; Tue, 23 Jul 2024 18:04:44 -0400 Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2024 15:04:34 -0700 Received: from dongwonk-z390-aorus-ultra.fm.intel.com ([10.105.129.124]) by orviesa003.jf.intel.com with ESMTP; 23 Jul 2024 15:04:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721772283; x=1753308283; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=xw+Od6uHSyed8v4SnhD/CR9QclCIv8RmGdTi85CVUps=; b=gDP991h/l1vrbsTWkpLQ/YKKk2TSJQerN2XgeSaYKCAYhUMbunRKG/OU jVTB31809lQ8G9jMgtyUSgPY+nYRfSNjbXw0fFOYVe399riNM7FHNkhtl xN53FS/Tb7GHIKwau1+vR6PQ1yFI0BalPd20JYPuSR83q1KCFfj2dUaiv SrD8O0GTMXWhPgvSy1ngxQTsWQgz5utETfBSPdF/Jg6WMkpwCg2E3J5Tc PPPEbMgcVa80N5df/H2spuZThC3fb+kTVnUp1SCxKXvXHhtMgiy3Qeu/R bV9f+wrULua3Xoec9fC8O4HZlp6Wp6MUnry4zfrKjVxUdlDMVMGwRdxbW A==; X-CSE-ConnectionGUID: 0ur9jyu4QT2xsLlLrtFG/A== X-CSE-MsgGUID: qEBkZYkfRPOTd7QFu/JySQ== X-IronPort-AV: E=McAfee;i="6700,10204,11142"; a="19298442" X-IronPort-AV: E=Sophos;i="6.09,231,1716274800"; d="scan'208";a="19298442" X-CSE-ConnectionGUID: 1HmcIXR6QEiRw1oTDDIbuQ== X-CSE-MsgGUID: e4HNJXgGTiWGHLVUDK2fxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,231,1716274800"; d="scan'208";a="57198647" From: dongwon.kim@intel.com To: qemu-devel@nongnu.org Subject: [PATCH v3 1/2] ui/egl-helpers: Consolidates create-sync and create-fence Date: Tue, 23 Jul 2024 15:02:57 -0700 Message-Id: <20240723220258.3170957-2-dongwon.kim@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240723220258.3170957-1-dongwon.kim@intel.com> References: <20240723220258.3170957-1-dongwon.kim@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=192.198.163.17; envelope-from=dongwon.kim@intel.com; helo=mgamail.intel.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.133, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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 @intel.com) X-ZM-MESSAGEID: 1721772338500116600 From: Dongwon Kim There is no reason to split those two operations so combining two functions - egl_dmabuf_create_sync and egl_dmabuf_create_fence. v2: egl_dmabuf_create_fence -> egl_dmabuf_create_fence_fd (Marc-Andr=C3=A9 Lureau ) v3: create fence only if current QemuDmaBuf->fence_fd =3D -1 to make sure there is no fence currently bound to the QemuDmaBuf Cc: Gerd Hoffmann Cc: Marc-Andr=C3=A9 Lureau Cc: Vivek Kasireddy Signed-off-by: Dongwon Kim --- include/ui/egl-helpers.h | 3 +-- ui/egl-helpers.c | 24 +++++++++--------------- ui/gtk-egl.c | 17 ++++------------- ui/gtk-gl-area.c | 12 +++--------- 4 files changed, 17 insertions(+), 39 deletions(-) diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index 4b8c0d2281..221548e3c9 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -51,8 +51,7 @@ int egl_get_fd_for_texture(uint32_t tex_id, EGLint *strid= e, EGLint *fourcc, =20 void egl_dmabuf_import_texture(QemuDmaBuf *dmabuf); void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf); -void egl_dmabuf_create_sync(QemuDmaBuf *dmabuf); -void egl_dmabuf_create_fence(QemuDmaBuf *dmabuf); +int egl_dmabuf_create_fence_fd(QemuDmaBuf *dmabuf); =20 #endif =20 diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index 99b2ebbe23..67c90abe18 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-helpers.c @@ -371,9 +371,10 @@ void egl_dmabuf_release_texture(QemuDmaBuf *dmabuf) qemu_dmabuf_set_texture(dmabuf, 0); } =20 -void egl_dmabuf_create_sync(QemuDmaBuf *dmabuf) +int egl_dmabuf_create_fence_fd(QemuDmaBuf *dmabuf) { EGLSyncKHR sync; + int fence_fd =3D -1; =20 if (epoxy_has_egl_extension(qemu_egl_display, "EGL_KHR_fence_sync") && @@ -382,23 +383,16 @@ void egl_dmabuf_create_sync(QemuDmaBuf *dmabuf) sync =3D eglCreateSyncKHR(qemu_egl_display, EGL_SYNC_NATIVE_FENCE_ANDROID, NULL); if (sync !=3D EGL_NO_SYNC_KHR) { - qemu_dmabuf_set_sync(dmabuf, sync); + fence_fd =3D eglDupNativeFenceFDANDROID(qemu_egl_display, + sync); + if (fence_fd >=3D 0) { + qemu_dmabuf_set_fence_fd(dmabuf, fence_fd); + } + eglDestroySyncKHR(qemu_egl_display, sync); } } -} - -void egl_dmabuf_create_fence(QemuDmaBuf *dmabuf) -{ - void *sync =3D qemu_dmabuf_get_sync(dmabuf); - int fence_fd; =20 - if (sync) { - fence_fd =3D eglDupNativeFenceFDANDROID(qemu_egl_display, - sync); - qemu_dmabuf_set_fence_fd(dmabuf, fence_fd); - eglDestroySyncKHR(qemu_egl_display, sync); - qemu_dmabuf_set_sync(dmabuf, NULL); - } + return fence_fd; } =20 #endif /* CONFIG_GBM */ diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c index 9831c10e1b..9983b0423a 100644 --- a/ui/gtk-egl.c +++ b/ui/gtk-egl.c @@ -68,7 +68,6 @@ void gd_egl_draw(VirtualConsole *vc) GdkWindow *window; #ifdef CONFIG_GBM QemuDmaBuf *dmabuf =3D vc->gfx.guest_fb.dmabuf; - int fence_fd; #endif int ww, wh, ws; =20 @@ -98,14 +97,13 @@ void gd_egl_draw(VirtualConsole *vc) =20 glFlush(); #ifdef CONFIG_GBM - if (dmabuf) { - egl_dmabuf_create_fence(dmabuf); - fence_fd =3D qemu_dmabuf_get_fence_fd(dmabuf); + if (dmabuf && qemu_dmabuf_get_fence_fd(dmabuf) =3D=3D -1) { + int fence_fd =3D egl_dmabuf_create_fence_fd(dmabuf); if (fence_fd >=3D 0) { qemu_set_fd_handler(fence_fd, gd_hw_gl_flushed, NULL, vc); - return; + } else { + graphic_hw_gl_block(vc->gfx.dcl.con, false); } - graphic_hw_gl_block(vc->gfx.dcl.con, false); } #endif } else { @@ -364,12 +362,6 @@ void gd_egl_scanout_flush(DisplayChangeListener *dcl, egl_fb_blit(&vc->gfx.win_fb, &vc->gfx.guest_fb, !vc->gfx.y0_top); } =20 -#ifdef CONFIG_GBM - if (vc->gfx.guest_fb.dmabuf) { - egl_dmabuf_create_sync(vc->gfx.guest_fb.dmabuf); - } -#endif - eglSwapBuffers(qemu_egl_display, vc->gfx.esurface); } =20 @@ -387,7 +379,6 @@ void gd_egl_flush(DisplayChangeListener *dcl, gtk_widget_queue_draw_area(area, x, y, w, h); return; } - gd_egl_scanout_flush(&vc->gfx.dcl, x, y, w, h); } =20 diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c index b628b35451..929bb49290 100644 --- a/ui/gtk-gl-area.c +++ b/ui/gtk-gl-area.c @@ -78,16 +78,9 @@ void gd_gl_area_draw(VirtualConsole *vc) 0, 0, ww, wh, GL_COLOR_BUFFER_BIT, GL_NEAREST); #ifdef CONFIG_GBM - if (dmabuf) { - egl_dmabuf_create_sync(dmabuf); - } -#endif - glFlush(); -#ifdef CONFIG_GBM - if (dmabuf) { + if (dmabuf && qemu_dmabuf_get_fence_fd(dmabuf) =3D=3D -1) { int fence_fd; - egl_dmabuf_create_fence(dmabuf); - fence_fd =3D qemu_dmabuf_get_fence_fd(dmabuf); + fence_fd =3D egl_dmabuf_create_fence_fd(dmabuf); if (fence_fd >=3D 0) { qemu_set_fd_handler(fence_fd, gd_hw_gl_flushed, NULL, vc); return; @@ -95,6 +88,7 @@ void gd_gl_area_draw(VirtualConsole *vc) graphic_hw_gl_block(vc->gfx.dcl.con, false); } #endif + glFlush(); } else { if (!vc->gfx.ds) { return; --=20 2.43.0 From nobody Mon Sep 16 18:57:50 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; 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=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1721772336; cv=none; d=zohomail.com; s=zohoarc; b=gyhLVarMqqgA1brdktvSM613S9yUHtlQVH9qwl1TccaS0oT57N2AK1lkABryEmfQ2ViDAcp0Pi4bTbpgELyKNdMJ7cttS/SDNmUZZqP3WH1nP5aYgTHlibiT6F5Rnpyto/TjUn+uOXPtShKaaSi7ieiK7q8s04fscOFkv/xzjeA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1721772336; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=tIaNG1fnWXVNjJmkGwnPiK+VhkhQZWw7f5nlhnvffOM=; b=G1NdJgPJ9GWeEyJdfm/rnxUjgiYoG5AC6CKpiKqP3qft4GoLfPweI6RD9249M5OqXOVeiuFcktKZ53c6RUymCL738cO854TagOlFutIXiqMEK4eUHtn5OhR32ufeGqXX0JFveIHJS4Dg+mtXzhqoViy5WCrbk9FT7gi1y7DuaoA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; 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 1721772336567879.029023187632; Tue, 23 Jul 2024 15:05:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWNcw-0008T9-Ao; Tue, 23 Jul 2024 18:04:58 -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 1sWNcu-0008Qf-8B for qemu-devel@nongnu.org; Tue, 23 Jul 2024 18:04:56 -0400 Received: from mgamail.intel.com ([192.198.163.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWNci-0002DJ-Ao for qemu-devel@nongnu.org; Tue, 23 Jul 2024 18:04:45 -0400 Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2024 15:04:34 -0700 Received: from dongwonk-z390-aorus-ultra.fm.intel.com ([10.105.129.124]) by orviesa003.jf.intel.com with ESMTP; 23 Jul 2024 15:04:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721772285; x=1753308285; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=scNDM+6pfxTcljNgUg9Lp60WGCZD6qrLhnMKtmxSDmc=; b=H9QsB3GxYorBj7BIFtFR0lkjMrPJKefl2Fwim3UJROOalkD9/tk0svvc XV6BCTu0qoD/EUwpDViSsxItqE1veJWpn9isOJCi+pqNCwI/bdF2srEqX mEuQO3nMlMmB5a+VClSdm7ydJXahsdTM3QYX3CQ/eGz5W4zY66aC0CC7d cXXrXaYzLKi4n9rUdtdKM2WE2zd/xsAeIdxSznDMsaG0KnwijH+7VZJvZ nduBONTcPAJsPTBCiW9yyrrcEshStKbQ9sLjLdpRNjIwUJfIFcyOwBtRR q7Uh6Y66wCAPfMrU+jkLCI99U7QuiY8IhUfaQkMNM0TnkDWfAGzrXiKhe Q==; X-CSE-ConnectionGUID: jcBhacM2Tv+r2u0SGSORWg== X-CSE-MsgGUID: 1YWukmsFRkOIZSvHIHVFXQ== X-IronPort-AV: E=McAfee;i="6700,10204,11142"; a="19298443" X-IronPort-AV: E=Sophos;i="6.09,231,1716274800"; d="scan'208";a="19298443" X-CSE-ConnectionGUID: qJKMQ6W8RhCKRlRkgNa1qQ== X-CSE-MsgGUID: QNq0YiWCSZ2LA/UalQuBgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,231,1716274800"; d="scan'208";a="57198648" From: dongwon.kim@intel.com To: qemu-devel@nongnu.org Subject: [PATCH v3 2/2] ui/dmabuf: Remove 'sync' from QemuDmaBuf struct Date: Tue, 23 Jul 2024 15:02:58 -0700 Message-Id: <20240723220258.3170957-3-dongwon.kim@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240723220258.3170957-1-dongwon.kim@intel.com> References: <20240723220258.3170957-1-dongwon.kim@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=192.198.163.17; envelope-from=dongwon.kim@intel.com; helo=mgamail.intel.com X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.133, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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 @intel.com) X-ZM-MESSAGEID: 1721772338471116600 From: Dongwon Kim Sync object is not used so removing it from QemuDmaBuf struct Cc: Gerd Hoffmann Cc: Marc-Andr=C3=A9 Lureau Cc: Vivek Kasireddy Signed-off-by: Dongwon Kim --- include/ui/dmabuf.h | 2 -- ui/dmabuf.c | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/include/ui/dmabuf.h b/include/ui/dmabuf.h index dc74ba895a..7f0f7f3f6e 100644 --- a/include/ui/dmabuf.h +++ b/include/ui/dmabuf.h @@ -36,13 +36,11 @@ uint32_t qemu_dmabuf_get_y(QemuDmaBuf *dmabuf); uint32_t qemu_dmabuf_get_backing_width(QemuDmaBuf *dmabuf); uint32_t qemu_dmabuf_get_backing_height(QemuDmaBuf *dmabuf); bool qemu_dmabuf_get_y0_top(QemuDmaBuf *dmabuf); -void *qemu_dmabuf_get_sync(QemuDmaBuf *dmabuf); int32_t qemu_dmabuf_get_fence_fd(QemuDmaBuf *dmabuf); bool qemu_dmabuf_get_allow_fences(QemuDmaBuf *dmabuf); bool qemu_dmabuf_get_draw_submitted(QemuDmaBuf *dmabuf); void qemu_dmabuf_set_texture(QemuDmaBuf *dmabuf, uint32_t texture); void qemu_dmabuf_set_fence_fd(QemuDmaBuf *dmabuf, int32_t fence_fd); -void qemu_dmabuf_set_sync(QemuDmaBuf *dmabuf, void *sync); void qemu_dmabuf_set_draw_submitted(QemuDmaBuf *dmabuf, bool draw_submitte= d); void qemu_dmabuf_set_fd(QemuDmaBuf *dmabuf, int32_t fd); =20 diff --git a/ui/dmabuf.c b/ui/dmabuf.c index df7a09703f..2332292a08 100644 --- a/ui/dmabuf.c +++ b/ui/dmabuf.c @@ -23,7 +23,6 @@ struct QemuDmaBuf { uint32_t backing_width; uint32_t backing_height; bool y0_top; - void *sync; int fence_fd; bool allow_fences; bool draw_submitted; @@ -170,13 +169,6 @@ bool qemu_dmabuf_get_y0_top(QemuDmaBuf *dmabuf) return dmabuf->y0_top; } =20 -void *qemu_dmabuf_get_sync(QemuDmaBuf *dmabuf) -{ - assert(dmabuf !=3D NULL); - - return dmabuf->sync; -} - int32_t qemu_dmabuf_get_fence_fd(QemuDmaBuf *dmabuf) { assert(dmabuf !=3D NULL); @@ -210,12 +202,6 @@ void qemu_dmabuf_set_fence_fd(QemuDmaBuf *dmabuf, int3= 2_t fence_fd) dmabuf->fence_fd =3D fence_fd; } =20 -void qemu_dmabuf_set_sync(QemuDmaBuf *dmabuf, void *sync) -{ - assert(dmabuf !=3D NULL); - dmabuf->sync =3D sync; -} - void qemu_dmabuf_set_draw_submitted(QemuDmaBuf *dmabuf, bool draw_submitte= d) { assert(dmabuf !=3D NULL); --=20 2.43.0