OSDN Git Service

st/vdpau: Fix multithreading
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 1 Apr 2016 05:31:18 +0000 (07:31 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 22 Feb 2017 09:20:37 +0000 (10:20 +0100)
commitf1e5dfbe3c8951a6c8acf41bf5e6c2d090098b2c
tree6347bce9a02612bac53764312b886b49e6956a1d
parentbcc9fd378d07bb635ef9386e1542cbeaf7312461
st/vdpau: Fix multithreading

The vdpau state tracker allows multiple threads access to the same gallium
context simultaneously. We can fix this either by locking the same mutex
each time the context is used or by using a different gallium context for
each mutex domain. Here we do the latter, although I'm not sure that's really
the best option.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/decode.c