radeonsi: skip TESSINNER/OUTER offchip stores if TES doesn't read them
authorMarek Olšák <marek.olsak@amd.com>
Sat, 18 Feb 2017 15:55:50 +0000 (16:55 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 21 Feb 2017 20:27:23 +0000 (21:27 +0100)
commit84e72f2962eab5eeb8b331e7a5d6eccaa7b8f5be
tree25938e5fb581a0614919e9efa6c15e248d212d54
parentd633e23192ef17207f4a6acd3009da3126aab395
radeonsi: skip TESSINNER/OUTER offchip stores if TES doesn't read them

We were unconditionally storing these outputs, sometimes even one component
at a time, but apps never read them in TES.

Move the TESSINNER/OUTER buffer stores into the TCS epilog where we can
easily disable them on demand.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c