aboutsummaryrefslogtreecommitdiff
path: root/ui/gtk-egl.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-14 15:44:09 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-07-06 10:32:14 +0200
commit9d8256ebc0ef88fb1f35d0405893962d20cc10ad (patch)
tree7277281fd892119a31e68c5e3bdd1391d67dafb2 /ui/gtk-egl.c
parentc61d8126fcdc1c70581be55d0082f4510e9cfb26 (diff)
downloadqemu-9d8256ebc0ef88fb1f35d0405893962d20cc10ad.zip
qemu-9d8256ebc0ef88fb1f35d0405893962d20cc10ad.tar.gz
qemu-9d8256ebc0ef88fb1f35d0405893962d20cc10ad.tar.bz2
virgl: pass whole GL scanout dimensions
Spice client needs the whole GL texture dimension to be able to show a scanout with a monitor offset (different than +0+0). Furthermore, this fixes a crash when calling surface_{width,height}() after dpy_gfx_replace_surface(con, NULL) was called in virgl_cmd_set_scanout() Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 1465911849-30423-4-git-send-email-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/gtk-egl.c')
-rw-r--r--ui/gtk-egl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk-egl.c b/ui/gtk-egl.c
index 431457c..3f5d328 100644
--- a/ui/gtk-egl.c
+++ b/ui/gtk-egl.c
@@ -172,6 +172,7 @@ QEMUGLContext gd_egl_create_context(DisplayChangeListener *dcl,
void gd_egl_scanout(DisplayChangeListener *dcl,
uint32_t backing_id, bool backing_y_0_top,
+ uint32_t backing_width, uint32_t backing_height,
uint32_t x, uint32_t y,
uint32_t w, uint32_t h)
{