egl: Additional attribute validation for eglCreatePbufferSurface
authorPlamena Manolova <plamena.manolova@intel.com>
Wed, 25 May 2016 16:29:55 +0000 (17:29 +0100)
committerBen Widawsky <benjamin.widawsky@intel.com>
Thu, 26 May 2016 15:02:48 +0000 (08:02 -0700)
commita0674ce5c41903ccd161e89abb149621bfbc40d2
tree9975c20f78fa8d5135a12758d12f6a4f680436c4
parent8539c9bf3158416b22346dc49696872e631e969f
egl: Additional attribute validation for eglCreatePbufferSurface

eglCreatePbufferSurface should generate an EGL_BAD_MATCH error if:
1: The EGL_TEXTURE_FORMAT attribute is EGL_NO_TEXTURE and EGL_TEXTURE_TARGET
is something other than EGL_NO_TEXTURE
2: EGL_TEXTURE_FORMAT is something other than EGL_NO_TEXTURE and
EGL_TEXTURE_TARGET is EGL_NO_TEXTURE.

This fixes the dEQP-EGL.functional.negative_api.create_pbuffer_surface test.

Signed-off-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/egl/main/eglsurface.c