nvc0: do not always invalidate 3D CBs when using compute
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 26 May 2016 22:30:17 +0000 (00:30 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 28 May 2016 13:50:03 +0000 (15:50 +0200)
commitf07ade6881e0e5bcb7df07b86e45373dbba650a1
treeaf094824b82834cf487f9b01cc6eca928b8828c1
parent357495b94dad4101a5491ed30782574162de58db
nvc0: do not always invalidate 3D CBs when using compute

Constant buffers are aliased between 3D and CP on Fermi, but we should
only invalidate them when a compute shader actually uses CBs and not
all the time after a lauching grid.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c