nvc0: reduce overhead from always marking buffers dirty
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Jun 2016 17:50:21 +0000 (13:50 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 5 Jun 2016 03:50:56 +0000 (23:50 -0400)
commit0f673db6f08995312a2f5ed04aba191d59910099
treed6ac814ecb3a7b56c7169ad7b5b3d6cdec7a0012
parente8ee161b160f6ff18134ff279b046f2e056bccd0
nvc0: reduce overhead from always marking buffers dirty

We would revalidate buffers when anything was touched at all. Which is
unfortunate, since the state tracker does not use CSO's to reduce the
workload. So instead implement a protocol to ensure that something has
changed before revalidating all the SSBOs.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nvc0/nvc0_state.c