st/va: make the implementation thread safe v2
authorChristian König <christian.koenig@amd.com>
Wed, 16 Dec 2015 19:58:49 +0000 (20:58 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 12 Jan 2016 12:26:24 +0000 (13:26 +0100)
commit8479782361ab58eeacee7f81b18d9597553859ce
treee47def598f93755990bf0abaa7af370bfc77758a
parent8926dc87af72e55128402209993971ee00ca00c6
st/va: make the implementation thread safe v2

Otherwise we might crash with MPV.

v2: minor cleanups suggested on the list.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Julien Isorce <j.isorce@samsung.com>
Tested-by: Julien Isorce <j.isorce@samsung.com>
src/gallium/state_trackers/va/buffer.c
src/gallium/state_trackers/va/context.c
src/gallium/state_trackers/va/image.c
src/gallium/state_trackers/va/picture.c
src/gallium/state_trackers/va/subpicture.c
src/gallium/state_trackers/va/surface.c
src/gallium/state_trackers/va/va_private.h