OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:48:37 +0000 (15:48 +0100)
commit5a63ae9f15523f58d8a82f5dc9fca89138aa92d0
tree5823458813ec9d8fb45daf08f6a513bebba492d7
parenta95560bac5af19bd836bfe0775b37e61f7724107
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>
(cherry picked from commit 0f673db6f08995312a2f5ed04aba191d59910099)
src/gallium/drivers/nouveau/nvc0/nvc0_state.c