diff options
author | Chad Versace <[email protected]> | 2016-12-22 17:06:14 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-01-24 01:13:23 +0000 |
commit | 0ca96e995e21cc6f3e44d33b32103fa9a8089a68 (patch) | |
tree | dbb12b8a3177225bf522275b2f2949432a00221c /src/intel | |
parent | 23ecfe8f09ff1c64198a23eba1cc376cf47c00c3 (diff) |
egl: Emit correct error when robust context creation fails
Fixes dEQP-EGL.functional.create_context_ext.robust_*
on Intel with GBM.
If the user sets the EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR in
EGL_CONTEXT_FLAGS_KHR when creating an OpenGL ES context, then
EGL_KHR_create_context spec requires that we unconditionally emit
EGL_BAD_ATTRIBUTE because that flag does not exist for OpenGL ES. When
creating an OpenGL context, the spec requires that we emit EGL_BAD_MATCH
if we can't support the request; that error is generated in the egl_dri2
layer where the driver capability is actually checked.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99188
Cc: [email protected]
Reviewed-by: Tapani Pälli <[email protected]>
(cherry picked from commit b85c0b569fe133b71a767a068e8608868158134e)
Diffstat (limited to 'src/intel')
0 files changed, 0 insertions, 0 deletions