egl: check if a window/pixmap is already used on surface creation
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 1 May 2019 23:26:47 +0000 (16:26 -0700)
committerEric Engestrom <eric@engestrom.ch>
Tue, 14 May 2019 12:41:14 +0000 (12:41 +0000)
commit73055ae1c9f481e439ae2c91bd23652d91b4b42a
tree1972d2249132923f73c0ce5659b430b2a8863bcc
parent04ecda3b3c85b5a3a52f4fa1a3e0f88c17231408
egl: check if a window/pixmap is already used on surface creation

The spec says we can't create another surface if we already created a
surface with the given window or pixmap. Implement this check.

This behavior is exercised by piglit/egl-create-surface.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/egl/main/eglapi.c