aco: Only write TCS outputs to LDS when they are read by the TCS.
authorTimur Kristóf <timur.kristof@gmail.com>
Sat, 7 Mar 2020 00:51:39 +0000 (01:51 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 08:34:11 +0000 (08:34 +0000)
commit9b36d8c23ac405be98a0e83ace1bea4d7a95df82
tree9ed3eda30636bb28501f831948e7577e9c43eecf
parent4dcca269455adb1029334cefb035fd19d9d99d50
aco: Only write TCS outputs to LDS when they are read by the TCS.

Note that tess factors are always read at the end of the shader,
so those are still always saved to LDS.

Totals from affected shaders:
VGPRS: 25244 -> 25164 (-0.32 %)
Code Size: 1768268 -> 1690804 (-4.38 %) bytes
Max Waves: 4947 -> 4953 (0.12 %)

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3964>
src/amd/compiler/aco_instruction_selection.cpp