st/nine: Use atomics for available_texture_mem
authorAxel Davy <axel.davy@ens.fr>
Wed, 15 Mar 2017 21:53:36 +0000 (22:53 +0100)
committerAxel Davy <axel.davy@ens.fr>
Sun, 26 Mar 2017 21:10:38 +0000 (23:10 +0200)
commitbdf035ea6f784b90a6cbfd4ce16f3188ab15b2d3
treeb1ffb2fe8740498ea99cae07ba061b78a046012a
parentbd85bb51c717a1858157c73adcb689e3986b2134
st/nine: Use atomics for available_texture_mem

Resource dtor can be executed in the worker thread.
Use atomic to avoid threading safety issues.

CC: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Tested-by: James Harvey <lothmordor@gmail.com>
src/gallium/state_trackers/nine/resource9.c