egl/dri2: swap_buffers_with_damage falls back to swap_buffers
authorEric Engestrom <eric@engestrom.ch>
Mon, 24 Oct 2016 22:41:00 +0000 (23:41 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Oct 2016 11:04:21 +0000 (12:04 +0100)
commit4fa799ae04c02b77176797c854f9d1b9b4290a2e
treee1178add2338afbfa79df804b776f315fdd9c8a3
parent294b5f5f71269cb3a8137abb72b9e2cad38a07d8
egl/dri2: swap_buffers_with_damage falls back to swap_buffers

Since commit 0a606a400fe3 ("egl: add eglSwapBuffersWithDamageKHR"),
Android has been broken because the function eglSwapBuffersWithDamageKHR
is provided regardless of the extension being present. Also, the Android
meta-EGL always advertises the extension regardless of the underlying
EGL implementation. As there doesn't seem to be a simple way
conditionally make the EGL function ptr NULL, just implement a brain
dead version of eglSwapBuffersWithDamage{KHR,EXT}.

Cc: 13.0 <mesa-stable@lists.freedesktop.org>
CC: Rob Clark <robdclark@gmail.com>
Suggested-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Rob Herring <robh@kernel.org>
[Emil Velikov: copy the original commit message from Rob's patch]
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2_fallbacks.h