From nobody Sun Dec 7 00:28:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@getutm.app; 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=getutm.app ARC-Seal: i=1; a=rsa-sha256; t=1764734990; cv=none; d=zohomail.com; s=zohoarc; b=cCHjQF2/RBNe30o4r/hDRBAgWidMPK7OG32adB7W68iHPw/T9dJvBDkSW76BjNiRX46R+ldVO/u37FXo2tHMT53vtkKMNEgg3pRYkcswAsA7Rj12Z6smVEqO0eOSBbLmTXZA14Bfl9TJjcALkuKvphKJwcfSGUOZZWl0iK4SoGU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1764734990; 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=Q0rWBXh0v74nPYlqDvxdhFdl4JiMuFiyO+nCGeKih+Q=; b=jJuIhnVFIRbp4yRmV6IyMp8NUYE7ZxIxmfzqaMXL8IrsdcdhlBhmJKsYKwOXKjuKqVMPnO/6FeDT5GhYkKzusD7Epbb/+z6QRcXlSV0xML9EOyp61uDQUql1e8SRJlVuyHYVnQKCjcsPp3z1D53au91zpS3rQTMW2WRtnhXgQ9Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@getutm.app; 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 1764734990188483.88154420901003; Tue, 2 Dec 2025 20:09:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vQeAI-0002Fd-HN; Tue, 02 Dec 2025 23:08:30 -0500 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 1vQeAE-0002Em-Fx for qemu-devel@nongnu.org; Tue, 02 Dec 2025 23:08:28 -0500 Received: from a4i956.smtp2go.com ([158.120.83.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vQeAD-0000Tm-6O for qemu-devel@nongnu.org; Tue, 02 Dec 2025 23:08:26 -0500 Received: from [10.159.238.187] (helo=localhost.localdomain) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA512__CHACHA20_POLY1305:256) (Exim 4.98.1-S2G) (envelope-from ) id 1vQe9r-FnQW0hPv7oK-Vbf4; Wed, 03 Dec 2025 04:08:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=getutm.app; i=@getutm.app; q=dns/txt; s=s483429; t=1764734892; h=from : subject : to : message-id : date; bh=Q0rWBXh0v74nPYlqDvxdhFdl4JiMuFiyO+nCGeKih+Q=; b=mR/7m6ei9XkxMBciEDZTYaflaDH5JROIPnomMoC8lv7WPUQ4oCTBWAF1p5leBuRApbQAJ cSHvTXRFJ99NJW9iRKF6z7y20Sa0aQPJnP0YMwAQARwBQNOLSebMy55ghaA18T1NAa5+lT5 kwZVdA2OWA6BSxP+l0I7QWR8n9OgRREYln7DkKzZQ/cxqEx6ZWJXQGc/0wteG5LmxMmxdqA HJqOraYC58cUWRIWls2aYqrcO+PTKye1ftZUTpQ8xE5e8gjJ0K6I1LRlGTaH0GuFXmyk79q OC4Yjits4UjSI4h2hNiF+M6KKl94uxYeE6qjTBAG5p4wxPewyVvh102PMxrg== From: Joelle van Dyne To: qemu-devel@nongnu.org Cc: Joelle van Dyne , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Akihiko Odaki , Dmitry Osipenko , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH RFC 1/7] egl-helpers: store handle to native device Date: Tue, 2 Dec 2025 20:07:48 -0800 Message-ID: <20251203040754.94487-2-j@getutm.app> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20251203040754.94487-1-j@getutm.app> References: <20251203040754.94487-1-j@getutm.app> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please forward a copy of this message, including all headers, to Feedback-ID: 483429m:483429abrvJvs:483429stcnh_z_wb X-smtpcorp-track: 68q7XsSCTGWE.y9JzzDj-leir.geuvvw6AcI_ 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=158.120.83.188; envelope-from=bounce.yuaz7qs5vfhjsv0=kllqm2owx64x=ksegn939lhphuv@em483429.getutm.app; helo=a4i956.smtp2go.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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 @getutm.app) X-ZM-MESSAGEID: 1764734991856019200 Content-Type: text/plain; charset="utf-8" Make way for other platforms by making the variable more general. Also we will be using the device in the future so let's save the pointer in the global instead of just a boolean flag. Signed-off-by: Joelle van Dyne --- include/ui/egl-helpers.h | 2 +- hw/display/virtio-gpu-virgl.c | 2 +- ui/egl-helpers.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index acf993fcf5..c239d32317 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -12,7 +12,7 @@ extern EGLDisplay *qemu_egl_display; extern EGLConfig qemu_egl_config; extern DisplayGLMode qemu_egl_mode; -extern bool qemu_egl_angle_d3d; +extern void *qemu_egl_angle_native_device; =20 typedef struct egl_fb { int width; diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c index 07f6355ad6..20c856c04e 100644 --- a/hw/display/virtio-gpu-virgl.c +++ b/hw/display/virtio-gpu-virgl.c @@ -1152,7 +1152,7 @@ int virtio_gpu_virgl_init(VirtIOGPU *g) } #endif #ifdef VIRGL_RENDERER_D3D11_SHARE_TEXTURE - if (qemu_egl_angle_d3d) { + if (qemu_egl_angle_native_device) { flags |=3D VIRGL_RENDERER_D3D11_SHARE_TEXTURE; } #endif diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c index e3f2872cc1..57bcf99498 100644 --- a/ui/egl-helpers.c +++ b/ui/egl-helpers.c @@ -28,7 +28,7 @@ EGLDisplay *qemu_egl_display; EGLConfig qemu_egl_config; DisplayGLMode qemu_egl_mode; -bool qemu_egl_angle_d3d; +void *qemu_egl_angle_native_device; =20 /* ------------------------------------------------------------------ */ =20 @@ -651,7 +651,7 @@ int qemu_egl_init_dpy_win32(EGLNativeDisplayType dpy, D= isplayGLMode mode) } =20 trace_egl_init_d3d11_device(device); - qemu_egl_angle_d3d =3D device !=3D NULL; + qemu_egl_angle_native_device =3D d3d11_device; } #endif =20 --=20 2.41.0