st/nine: Optimize managed buffer upload
authorAxel Davy <axel.davy@ens.fr>
Thu, 1 Dec 2016 21:50:22 +0000 (22:50 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:47:08 +0000 (23:47 +0100)
commit16b6fb65ae03902f731b863802c094c4d854def1
treec05658257d48a65a468ed26f50b13719b78ba584
parenta78b5f437865fc976154d226eb87b67ef2f098d2
st/nine: Optimize managed buffer upload

Do the upload in the other thread.

Usually managed buffers are used once per frame.
It is then very likely pending_upload is 0 at Lock
time.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/buffer9.c
src/gallium/state_trackers/nine/buffer9.h