OSDN Git Service

ac/nir: avoid loading unused VS input components
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Feb 2018 10:35:06 +0000 (11:35 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 7 Feb 2018 11:42:09 +0000 (12:42 +0100)
commit2f54d7382db3e3a23fb1b3e61c246931828309e5
treebc792ab53e354e94a5e67ae47881435753df07c1
parent1c57a6da5e38c18926eca22b96901e4640ec430f
ac/nir: avoid loading unused VS input components

Polaris10:
Totals from affected shaders:
SGPRS: 122840 -> 120984 (-1.51 %)
VGPRS: 78812 -> 78440 (-0.47 %)
Spilled SGPRs: 177 -> 129 (-27.12 %)
Code Size: 2950028 -> 2941276 (-0.30 %) bytes
Max Waves: 17899 -> 17976 (0.43 %)

Vega10:
Totals from affected shaders:
SGPRS: 117144 -> 115776 (-1.17 %)
VGPRS: 77580 -> 77532 (-0.06 %)
Spilled SGPRs: 0 -> 152 (0.00 %)
Code Size: 3352656 -> 3347860 (-0.14 %) bytes
Max Waves: 19756 -> 19866 (0.56 %)

This increases SGPRs spilling a bit with Talos, but I have
some other ideas that might reduce it.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c