mesa/src
Tapani Pälli 282b87dd03 egl: fix type mismatch error type in _eglInitSurface
EGL spec defines EGL_BAD_MATCH for windows, pixmaps and pbuffers in
case where user creates a surface but config does not support rendering
to such surface type.

Following quotes are from EGL 1.5 spec 3.5 "Rendering Surfaces" :

for eglCreatePlatformWindowSurface, eglCreateWindowSurface:

   "If config does not support rendering to windows (the EGL_SURFACE_TYPE
   attribute does not contain EGL_WINDOW_BIT ), an EGL_BAD_MATCH error is
   generated."

for eglCreatePbufferSurface:

   "If config does not support pbuffers, an EGL_BAD_MATCH error is
   generated."

for eglCreatePlatformPixmapSurface, eglCreatePixmapSurface:

   "If config does not support rendering to pixmaps (the EGL_SURFACE_TYPE
   attribute does not contain EGL_PIXMAP_BIT ), an EGL_BAD_MATCH error is
   generated."

Fixes following dEQP test:

   dEQP-EGL.functional.negative_api.create_pbuffer_surface

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2016-10-25 07:24:11 +03:00
..
amd radv: allow cmask transitions without fast clear 2016-10-24 11:03:09 +10:00
compiler glsl: add matrix layout information to interface block types 2016-10-24 15:49:53 +02:00
egl egl: fix type mismatch error type in _eglInitSurface 2016-10-25 07:24:11 +03:00
gallium gallium/stapi: fix comment for st_visual::buffer_mask 2016-10-24 17:22:00 -07:00
gbm loader: remove loader_get_driver_for_fd() driver_type 2016-10-18 17:06:29 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx loader: remove loader_get_driver_for_fd() driver_type 2016-10-18 17:06:29 +01:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel isl/format: Correct ASTC entries of format info table 2016-10-24 15:51:57 -07:00
loader loader: cleanup copyright section 2016-10-18 17:06:32 +01:00
mapi mapi: automake: set VISIBILITY_CFLAGS for shared glapi 2016-10-24 11:29:23 +01:00
mesa i965: Drop nir_inputs from fs_visitor. 2016-10-24 14:33:38 -07:00
util util: Include string.h in bitscan.h. 2016-10-20 14:54:28 -07:00
vulkan/wsi wsi/wayland: fix error path 2016-10-20 10:53:59 +10:00
Makefile.am anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00