[Mesa-dev] [PATCH] egl: fix for multiple window surfaces per single window

2016-03-11 Thread Pielech, Adrian
Current implementation of eglCreateWindowSurface() is against to the EGL specification, because it allows creating multiple surfaces per single window. --- src/egl/main/eglapi.c | 109 +- 1 file changed, 107 insertions(+), 2 deletions(-) diff

[Mesa-dev] [PATCH] egl: updating surface size on x11

2016-03-11 Thread Pielech, Adrian
I've found that EGLSurface width and height are not updated after window resizing on x11. Here is the patch for this issue. --- src/egl/drivers/dri2/platform_x11.c | 16 1 file changed, 16 insertions(+) diff --git a/src/egl/drivers/dri2/platform_x11.c

[Mesa-dev] [PATCH] egl: Fix for not setting EGL_BAD_MATCH by eglCreatePbufferSurface.

2016-03-04 Thread Pielech, Adrian
This is fix for not setting EGL_BAD_MATCH when calling eglCreatePbufferSurface with invalid setting of EGL_TEXTURE_FORMAT and EGL_TEXTURE_TARGET. According to EGL spec the following combination should generate EGL_BAD_MATCH: EGL_TEXTURE_FORMAT == EGL_NO_TEXTURE and EGL_TEXTURE_TARGET !=