From: Richard Henderson <richard.henderson@linaro.org>
To: Dongwon Kim <dongwon.kim@intel.com>, qemu-devel@nongnu.org
Cc: "Gerd Hoffmann" <kraxel@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Vivek Kasireddy" <vivek.kasireddy@intel.com>
Subject: Re: [PATCH] ui/gtk: making dmabuf NULL when it's released.
Date: Thu, 22 Jun 2023 07:02:30 +0200 [thread overview]
Message-ID: <1f1d2da4-4402-d92a-c0f9-5f7f06089ccb@linaro.org> (raw)
In-Reply-To: <20230621221134.29802-1-dongwon.kim@intel.com>
On 6/22/23 00:11, Dongwon Kim wrote:
> static void gd_gl_release_dmabuf(DisplayChangeListener *dcl,
> QemuDmaBuf *dmabuf)
> {
> + VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
> #ifdef CONFIG_GBM
> egl_dmabuf_release_texture(dmabuf);
> + if (vc->gfx.guest_fb.dmabuf == dmabuf) {
> + vc->gfx.guest_fb.dmabuf = NULL;
> + }
> #endif
> }
Conditionally unused variable outside the ifdef.
r~
next prev parent reply other threads:[~2023-06-22 5:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-21 22:11 [PATCH] ui/gtk: making dmabuf NULL when it's released Dongwon Kim
2023-06-22 5:02 ` Richard Henderson [this message]
2023-06-27 0:53 ` [PATCH v2] " Dongwon Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f1d2da4-4402-d92a-c0f9-5f7f06089ccb@linaro.org \
--to=richard.henderson@linaro.org \
--cc=dongwon.kim@intel.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=vivek.kasireddy@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).