egl: handle BAD_NATIVE_PIXMAP further up the stack
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 4 Aug 2017 23:25:48 +0000 (00:25 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 10 Aug 2017 18:28:04 +0000 (19:28 +0100)
commitdf8efd5b74d45e2bfb977a92dcd3db86abd6b143
treef32dc198e5c8d8ba5662135ec6b12176b5ad8fab
parent92b23683ebc839b13a565252cf13f5c2a715dcaa
egl: handle BAD_NATIVE_PIXMAP further up the stack

The basic (null) check is identical across all backends.
Just move it to the top.

v2:
 - Split the WINDOW vs PIXMAP into separate patches
 - Move check after the dpy and config - dEQP expects so

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/platform_x11.c
src/egl/main/eglapi.c