mesa/src
Chad Versace 1a23aff6b7 egl: Emit error when EGLSurface is lost
Add a new bool, _EGLSurface::Lost, and check it in eglMakeCurrent and
eglSwapBuffers. The EGL 1.5 spec says that those functions emit errors
when the native surface is no longer valid.

This patch just updates core EGL. No driver sets _EGLSurface::Lost yet.

I discovered that Mesa failed to detect lost surfaces while debugging an
Android CTS camera test,
android.hardware.camera2.cts.RobustnessTest#testAbandonRepeatingRequestSurface.
This patch doesn't fix the test though, though, because the test expects
EGL_BAD_SURFACE when the surface becomes lost, and this patch actually
complies with the EGL spec. If I interpreted the EGL spec correctly,
EGL_BAD_NATIVE_WINDOW or EGL_BAD_CURRENT_SURFACE is the correct error.

Cc: mesa-stable@lists.freedesktop.org
Cc: Tomasz Figa <tfiga@chromium.org>
Cc: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 23c86c74cc)
2017-05-08 11:24:04 +01:00
..
amd radeonsi/gfx9: make some PA & DB registers match the closed Vulkan driver 2017-05-08 11:24:04 +01:00
compiler nir: Pick just the channels we want for bitmap and drawpixels lowering. 2017-05-05 19:35:08 +01:00
egl egl: Emit error when EGLSurface is lost 2017-05-08 11:24:04 +01:00
gallium winsys/amdgpu: fix Polaris12 (RX 550) breakage 2017-05-08 11:24:04 +01:00
gbm gbm: Assert modifiers and count are copacetic 2017-04-09 09:29:57 -07:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: glX_proto_send.py: use correct compile guard GLX_INDIRECT_RENDERING 2017-05-08 11:24:04 +01:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: anv_gem_mmap() returns MAP_FAILED as mapping error 2017-05-08 11:23:40 +01:00
loader loader: use drmGetDevice[s]2 API 2017-03-15 11:37:55 +00:00
mapi glx: glX_proto_send.py: use correct compile guard GLX_INDIRECT_RENDERING 2017-05-08 11:24:04 +01:00
mesa mesa/dri: always link against shared glapi 2017-05-08 11:24:04 +01:00
util util/disk_cache: remove percentage based max cache limit 2017-04-30 09:46:30 +01:00
vulkan vulkan/wsi/wayland: Pass damage through to the compositor 2017-04-03 13:51:08 -07:00
Makefile.am intel/vulkan: Get rid of recursive make 2017-03-13 11:16:35 +00:00
SConscript