OSDN Git Service

nvc0: reduce overhead from always marking images dirty
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 4 Jun 2016 18:13:38 +0000 (14:13 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:48:37 +0000 (15:48 +0100)
commitceb9ed0e386223711fe80d38daf0fbf64b6ced02
tree43f29046366601ec622760628d417511f995ba18
parent5a63ae9f15523f58d8a82f5dc9fca89138aa92d0
nvc0: reduce overhead from always marking images dirty

We would revalidate images 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 images.

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