virgl: pass whole GL scanout dimensions
commit9d8256ebc0ef88fb1f35d0405893962d20cc10ad
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 14 Jun 2016 13:44:09 +0000 (14 15:44 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 6 Jul 2016 08:32:14 +0000 (6 10:32 +0200)
tree7277281fd892119a31e68c5e3bdd1391d67dafb2
parentc61d8126fcdc1c70581be55d0082f4510e9cfb26
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>
hw/display/virtio-gpu-3d.c
include/ui/console.h
include/ui/gtk.h
include/ui/sdl2.h
ui/console.c
ui/gtk-egl.c
ui/sdl2-gl.c
ui/spice-display.c