summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-08-05 00:25:48 +0100
committerEmil Velikov <[email protected]>2017-08-10 19:28:04 +0100
commitdf8efd5b74d45e2bfb977a92dcd3db86abd6b143 (patch)
treef32dc198e5c8d8ba5662135ec6b12176b5ad8fab /src/egl/drivers
parent92b23683ebc839b13a565252cf13f5c2a715dcaa (diff)
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 <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/dri2/platform_x11.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index ec38e8123d8..87efa016be9 100644
--- a/src/egl/drivers/dri2/platform_x11.c
+++ b/src/egl/drivers/dri2/platform_x11.c
@@ -246,11 +246,6 @@ dri2_x11_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type,
dri2_surf->drawable, dri2_dpy->screen->root,
dri2_surf->base.Width, dri2_surf->base.Height);
} else {
- if (!drawable) {
- assert(type == EGL_PIXMAP_BIT)
- _eglError(EGL_BAD_NATIVE_PIXMAP, "dri2_create_surface");
- goto cleanup_surf;
- }
dri2_surf->drawable = drawable;
}