Commit 0e6ccd18 authored by Sergii Romantsov's avatar Sergii Romantsov Committed by Dylan Baker

intel/dri: finish proper glthread

KWin was able to get NULL-context in the call
intelUnbindContext. But a call _mesa_glthread_finish
is not resistent to such case.
Case can be catched with steps:
	1. Create both glx and egl contexts
	2. Make glx as current
	3. Make egl as current
	4. Reset glx context
	5. Make egl as current

Solution adds proper finishing of glthread-context
(context will be taken from the requested dri-context
for unbinding, but not from the saved current context).

Piglit-test: piglit!87

Cc: 19.1 19.2 <>
Fixes: dca36d55 (i965: Implement threaded GL support)
Signed-off-by: default avatarSergii Romantsov <>
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
(cherry picked from commit 1dce75c1)
parent 5e729877
......@@ -1245,7 +1245,7 @@ intelDestroyContext(__DRIcontext * driContextPriv)
intelUnbindContext(__DRIcontext * driContextPriv)
struct gl_context *ctx = driContextPriv->driverPrivate;
/* Unset current context and dispath table */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment