st/nine: Use nine_context_box_upload for surfaces
authorAxel Davy <axel.davy@ens.fr>
Sat, 3 Dec 2016 23:19:45 +0000 (00:19 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:47:08 +0000 (23:47 +0100)
commitfec0b7f0672b3d4d6507dd705abb9e2a74943401
treee24c0672a6eb3f01d3f197bcdcda001fea82f8af
parentc873a2bd0c5a9fcb6e83f23e4494b5f53d71288b
st/nine: Use nine_context_box_upload for surfaces

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

Check the uploads are executed before any action
that can alter the data, that is LockRect,
NineSurface9_CopyDefaultToMem and surface destruction.

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