mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -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
|
@ -87,7 +87,7 @@ void gd_egl_draw(VirtualConsole *vc)
|
|||
if (!qemu_dmabuf_get_draw_submitted(dmabuf)) {
|
||||
return;
|
||||
} else {
|
||||
dmabuf->draw_submitted = false;
|
||||
qemu_dmabuf_set_draw_submitted(dmabuf, false);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -382,7 +382,7 @@ void gd_egl_flush(DisplayChangeListener *dcl,
|
|||
if (vc->gfx.guest_fb.dmabuf &&
|
||||
!qemu_dmabuf_get_draw_submitted(vc->gfx.guest_fb.dmabuf)) {
|
||||
graphic_hw_gl_block(vc->gfx.dcl.con, true);
|
||||
vc->gfx.guest_fb.dmabuf->draw_submitted = true;
|
||||
qemu_dmabuf_set_draw_submitted(vc->gfx.guest_fb.dmabuf, true);
|
||||
gtk_egl_set_scanout_mode(vc, true);
|
||||
gtk_widget_queue_draw_area(area, x, y, w, h);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue