st/nine: Upload managed buffers only at draw using them
authorAxel Davy <davyaxel0@gmail.com>
Thu, 4 Apr 2019 21:06:44 +0000 (23:06 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 30 Apr 2019 17:18:50 +0000 (19:18 +0200)
commitbb3b8f8e01129ed35ea47463716def7c375f0f19
tree77903fa311ee312bd34d08527115e3eaa5a6a7dd
parent5df96995efc37260b2675f61804c94a1a632609f
st/nine: Upload managed buffers only at draw using them

When a draw call is emited, buffers in the
device->update_buffers list are uploaded.

This patch removes buffers from the list if they
are not bound anymore.

Behaviour found studying:
https://github.com/iXit/Mesa-3D/issues/345

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/buffer9.h