egl: Check config's surface types in eglCreate*Surface()
authorChad Versace <chadversary@chromium.org>
Fri, 16 Dec 2016 19:00:13 +0000 (11:00 -0800)
committerChad Versace <chadversary@chromium.org>
Tue, 20 Dec 2016 19:53:31 +0000 (11:53 -0800)
commitfbb4af96c6b6be08ed93e8d5a704b9f7002642f8
treed0145d437235dc3afc2f7bc7c3a9937f58aaf9bc
parent62b8bcda1cb7ad18acee7042d40c01b56385e124
egl: Check config's surface types in eglCreate*Surface()

If the provided EGLConfig does not support the requested surface type,
then emit EGL_BAD_MATCH.

Fixes dEQP-EGL.functional.negative_api.create_pbuffer_surface
on GBM.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/main/eglapi.c