[Mesa-dev] [PATCH 1/3] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-03-25 Thread Xiong Zhang
GLXBadDrawable. v2: Fix space issue (Alex Davy) https://bugs.freedesktop.org/show_bug.cgi?id=79629 Signed-off-by: Xiong Zhang --- src/glx/dri3_glx.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 1ddc723..058f7e7 100644 --- a

[Mesa-dev] [PATCH 2/3] driX_glx.c: Draw and read must be either all non-zero or all zero

2015-03-25 Thread Xiong Zhang
Signed-off-by: Xiong Zhang --- src/glx/dri2_glx.c | 5 + src/glx/dri3_glx.c | 5 + src/glx/dri_glx.c | 5 + src/glx/drisw_glx.c | 5 + 4 files changed, 20 insertions(+) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 462d560..f980f82 100644 --- a/src/glx

[Mesa-dev] [PATCH 3/3] glx: Distinguish the macro value for Success and GLXBadContext

2015-03-25 Thread Xiong Zhang
The return value for glx_context->vtable->bind may be Success or GLXBadContext, but the macro value for both Success and GLXBadContext are 0, so the caller can't identify the return value between them. Signed-off-by: Xiong Zhang --- src/glx/applegl_glx.c | 12 +++- src/glx

[Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-03-23 Thread Xiong Zhang
GLXBadDrawable. v2: Fix spacing issue (Axel Davy) https://bugs.freedesktop.org/show_bug.cgi?id=79629 Signed-off-by: Xiong Zhang --- src/glx/dri3_glx.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index e3fc4de..a07e8d4 100644

[Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-02-02 Thread Xiong Zhang
GLXBadDrawable. https://bugs.freedesktop.org/show_bug.cgi?id=79629 Signed-off-by: Xiong Zhang --- src/glx/dri3_glx.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 1ddc723..9cd0aab 100644 --- a/src/glx/dri3_glx.c +++ b/src

[Mesa-dev] [PATCH] intel: Fix initial MakeCurrent for drawables of multi screens

2014-06-06 Thread Xiong Zhang
the width and height of Draw buffer is zero, this causes glClear() return early without calling Driver.Clear(); finaly Draw buffer doesn't have bo, so eglSwapBuffers() occur segment fault error. Signed-off-by: Xiong Zhang --- src/mesa/drivers/dri/i965/brw_context.c | 10 ++ 1 file cha