aboutsummaryrefslogtreecommitdiff
path: root/ui/gtk-gl-area.c
diff options
context:
space:
mode:
authorErico Nunes <ernunes@redhat.com>2023-02-20 18:56:05 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-05-28 13:08:25 +0400
commit94400fa53f81c9f58ad88cf3f3e7ea89ec423d39 (patch)
tree0baa33d2757f2fa3475321ac7ff3c325b7d436c7 /ui/gtk-gl-area.c
parentac84b57b4d74606f7f83667a0606deef32b2049d (diff)
downloadqemu-94400fa53f81c9f58ad88cf3f3e7ea89ec423d39.zip
qemu-94400fa53f81c9f58ad88cf3f3e7ea89ec423d39.tar.gz
qemu-94400fa53f81c9f58ad88cf3f3e7ea89ec423d39.tar.bz2
ui/gtk: fix passing y0_top parameter to scanout
The dmabuf->y0_top flag is passed to .dpy_gl_scanout_dmabuf(), however in the gtk ui both implementations dropped it when doing the next scanout_texture call. Fixes flipped linux console using vhost-user-gpu with the gtk ui display. Signed-off-by: Erico Nunes <ernunes@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230220175605.43759-1-ernunes@redhat.com>
Diffstat (limited to 'ui/gtk-gl-area.c')
-rw-r--r--ui/gtk-gl-area.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
index 7696df1..c384a15 100644
--- a/ui/gtk-gl-area.c
+++ b/ui/gtk-gl-area.c
@@ -298,7 +298,7 @@ void gd_gl_area_scanout_dmabuf(DisplayChangeListener *dcl,
}
gd_gl_area_scanout_texture(dcl, dmabuf->texture,
- false, dmabuf->width, dmabuf->height,
+ dmabuf->y0_top, dmabuf->width, dmabuf->height,
0, 0, dmabuf->width, dmabuf->height);
if (dmabuf->allow_fences) {