egl: Return EGL_BAD_MATCH for invalid share_list
authorMichael Skorokhodov <mykhailo.skorokhodov@globallogic.com>
Fri, 6 May 2022 09:28:21 +0000 (12:28 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 20 Sep 2022 15:47:22 +0000 (15:47 +0000)
commit5e76850cff45deaacc34df352c68af990f3b7fb9
treea2be455ad1769c36f28285cc9508aafe26cfee25
parenta418ab6654d6d5a250c39ceaf38bab70139e2d93
egl: Return EGL_BAD_MATCH for invalid share_list

From the eglspec.1.5: "An EGL_BAD_MATCH is generated if [...]
share context was created on a different display than
the one referenced by config."

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6414
Signed-off-by: Mykhailo Skorokhodov<mykhailo.skorokhodov@globallogic.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16368>
src/egl/main/eglapi.c