radv,aco: lower image descriptor loads in NIR
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 21 Oct 2020 17:12:35 +0000 (18:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 22 Mar 2022 16:33:27 +0000 (16:33 +0000)
commit543a5487cf7cedd70383e8736ed8ab6a098e9cc7
tree4e31b3a1a891d7adfd90cae3f6e0784c16c6d928
parent15640e58d96c5db0cd78769a06b6b204dcd60799
radv,aco: lower image descriptor loads in NIR

fossil-db (Sienna Cichlid):
Totals from 2926 (1.80% of 162293) affected shaders:
Instrs: 2315110 -> 2306644 (-0.37%); split: -0.37%, +0.00%
CodeSize: 12581592 -> 12546588 (-0.28%); split: -0.28%, +0.00%
VGPRs: 130216 -> 130208 (-0.01%)
SpillSGPRs: 477 -> 474 (-0.63%); split: -5.03%, +4.40%
Latency: 29686188 -> 29678804 (-0.02%); split: -0.05%, +0.02%
InvThroughput: 6926545 -> 6926286 (-0.00%); split: -0.02%, +0.02%
SClause: 73761 -> 72996 (-1.04%); split: -1.16%, +0.12%
Copies: 144068 -> 137279 (-4.71%); split: -4.78%, +0.07%
Branches: 47466 -> 47483 (+0.04%); split: -0.01%, +0.04%
PreSGPRs: 118042 -> 117377 (-0.56%); split: -1.34%, +0.77%

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12773>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/vulkan/radv_nir_apply_pipeline_layout.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h