st/nine: Lock the entire buffer in some cases.
authorAxel Davy <davyaxel0@gmail.com>
Sun, 16 Sep 2018 19:59:55 +0000 (21:59 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 25 Sep 2018 20:05:24 +0000 (22:05 +0200)
commitdc4b53e129150e85903214fc7cdd3cd437843392
tree5eab5231c730044cef30ded0b8aa38f25de18057
parent0eeb583650c64e789e0bfa7b3194310c5c44ba4f
st/nine: Lock the entire buffer in some cases.

Previously we had already found that for
MANAGED buffers the buffer started dirty
(which meant all writes out of bound
before the first draw call using the
buffer have to be taken into account).

Possibly it is the same for the other types of buffers.
For now always lock the entire buffer (starting from the offset)
for these (except for DYNAMIC buffers, which might hurt
performance too much).

Fixes: https://github.com/iXit/Mesa-3D/issues/301
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/buffer9.c