st/nine: Use nine_context_box_upload for volumes
authorAxel Davy <axel.davy@ens.fr>
Sat, 3 Dec 2016 23:29:16 +0000 (00:29 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:47:08 +0000 (23:47 +0100)
commitd4a9b21feb890c149f0aa44b0bb6ea63a9932925
treec1a0a091c8d3cf4ff34c60ad4b945af297042c3d
parentf04263923132bcf0425e1297da460543e93a95fe
st/nine: Use nine_context_box_upload for volumes

Use nine_context_box_upload for uploads:
. systemmem volume to default volume
. managed volume internal content to its resource.

Check the uploads are executed before any action
that can alter the data, that is LockBox and
volume destruction.

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