mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
ui/console: Use qemu_dmabuf_set_..() helpers instead
This commit updates all occurrences where these fields were set directly have been updated to utilize helper functions. v7: removed prefix, "dpy_gl_" from all helpers v8: Introduction of helpers was removed as those were already added by the previous commit Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Cc: Philippe Mathieu-Daudé <philmd@linaro.org> Cc: Daniel P. Berrangé <berrange@redhat.com> Cc: Vivek Kasireddy <vivek.kasireddy@intel.com> Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> Message-Id: <20240508175403.3399895-5-dongwon.kim@intel.com>
This commit is contained in:
parent
6779a3076f
commit
fa6426805b
4 changed files with 16 additions and 14 deletions
6
ui/gtk.c
6
ui/gtk.c
|
@ -598,11 +598,11 @@ void gd_hw_gl_flushed(void *vcon)
|
|||
QemuDmaBuf *dmabuf = vc->gfx.guest_fb.dmabuf;
|
||||
int fence_fd;
|
||||
|
||||
if (dmabuf->fence_fd >= 0) {
|
||||
fence_fd = qemu_dmabuf_get_fence_fd(dmabuf);
|
||||
fence_fd = qemu_dmabuf_get_fence_fd(dmabuf);
|
||||
if (fence_fd >= 0) {
|
||||
qemu_set_fd_handler(fence_fd, NULL, NULL, NULL);
|
||||
close(fence_fd);
|
||||
dmabuf->fence_fd = -1;
|
||||
qemu_dmabuf_set_fence_fd(dmabuf, -1);
|
||||
graphic_hw_gl_block(vc->gfx.dcl.con, false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue