glthread/gallium: require safe_glthread to start glthread
authorGregory Hainaut <gregory.hainaut@gmail.com>
Mon, 29 May 2017 11:18:28 +0000 (13:18 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 16:07:04 +0000 (17:07 +0100)
commit79f0fe655dfe3e572a6f5325844f96150b8c5cee
tree05012d250b301562822db933f1109fb0f3179d25
parent3fde8db53a6296ad8f635843f58717ebd9a36e85
glthread/gallium: require safe_glthread to start glthread

Print an error message for the user if the requirement isn't met, or
we're not thread safe.

v2: based on Nicolai feedbacks
Check the DRI extension version

v3: based on Emil feedbacks
improve commit and error messages.
use backgroundCallable variable to improve readability

v5: based on Emil feedbacks
Properly check the function pointer

Signed-off-by: Gregory Hainaut <gregory.hainaut@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/state_trackers/dri/dri_context.c