st/nine: Upload Managed buffers just before draw call using them
authorAxel Davy <axel.davy@ens.fr>
Sun, 6 Nov 2016 11:38:38 +0000 (12:38 +0100)
committerAxel Davy <axel.davy@ens.fr>
Tue, 20 Dec 2016 22:44:23 +0000 (23:44 +0100)
commit4f344db8b0fdb08cdcba00d714309f27e073edf8
treef36335c7fc3bcf0d5eb3aada7bff6ace8277c03b
parente52aded87febcf422ae80551e5d204be04c89278
st/nine: Upload Managed buffers just before draw call using them

Previously we were uploading Managed buffers at the next draw call
after they were set dirty.
This is not the expected behaviour. Instead upload just before
draw call needing the content.

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