]> git.proxmox.com Git - mirror_qemu.git/commit
ui/egl: fix framebuffer reads
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Sep 2019 07:39:11 +0000 (09:39 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Sep 2019 11:42:02 +0000 (13:42 +0200)
commitd2329237af197429492ec27d22a4ba4f121dbc10
treea8bfaa3bb76ecc3f4d96faff146eab22be92e973
parent89ea03a7dc83ca36b670ba7f787802791fcb04b1
ui/egl: fix framebuffer reads

Fix egl_fb_read() to use the (destination) surface size instead of the
(source) framebuffer source for glReadPixels.  Pass the DisplaySurface
instead of the pixeldata pointer to egl_fb_read() to make this possible.

With that in place framebuffer reads work fine even if the surface and
framebuffer sizes don't match, so we can remove the guest-triggerable
asserts in egl_scanout_flush().

Buglink: https://bugzilla.redhat.com//show_bug.cgi?id=1749659
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20190909073911.24787-1-kraxel@redhat.com
include/ui/egl-helpers.h
ui/egl-headless.c
ui/egl-helpers.c