• chadversary's avatar
    egl: Emit error when EGLSurface is lost · d231ed73
    chadversary authored
    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: default avatarNicolas Boichat <drinkcat@chromium.org>
    Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
    (cherry picked from commit 23c86c74)
    d231ed73
Name
Last commit
Last update
bin Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
m4 Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
Makefile.am Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
common.py Loading commit data...
configure.ac Loading commit data...
install-gallium-links.mk Loading commit data...
install-lib-links.mk Loading commit data...