egl/wayland: Try to use wl_surface.damage_buffer for SwapBuffersWithDamage
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 16 Feb 2016 16:34:39 +0000 (10:34 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 26 Feb 2016 11:49:09 +0000 (11:49 +0000)
commitd085a5dff5bf753b82228ef0827f2331aff7b35b
treee3fbc1d371c546043bdef7c94e97f1de3a476a56
parent840aa52f50cb9a37659768afea389bcf29ea7c96
egl/wayland: Try to use wl_surface.damage_buffer for SwapBuffersWithDamage

Since commit d1314de293e9e4a63c35f094c3893aaaed8580b4 we ignore
damage passed to SwapBuffersWithDamage.

Wayland 1.10 now has functionality that allows us to properly
process those damage rectangles, and a way to query if it's
available.

Now we can use wl_surface.damage_buffer and interpret the incoming
damage as being in buffer co-ordinates.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
src/egl/drivers/dri2/platform_wayland.c