RADV/NIR: Shader register/subgroups regression in !24965
Description
!24965 (merged) caused one of my shaders to regress from
SGPRs 56
VGPRs 28
Code size 2940
Subgroups per SIMD 9
Instructions 588
to
SGPRs 80
VGPRs 36
Code size 7180
Subgroups per SIMD 6
Instructions 1457
Bisected to 31b5f5a5
Pitcairn GPU
Shader attached 87fb2120a3be19a1.frag.spv
The test program is here in case you want to try it yourself: https://github.com/turol/smaaDemo
Run like this to activate shader executable stats:
smaaDemo-bin --debug --trace
Log file is in ~/.local/share/SMAADemo/logfile.txt
The interesting bit in the log is after the line
GraphicsPipeline "smaaBlendWeightsmaaBlendWeight SMAA_GLSL_SEPARATE_SAMPLER=1 SMAA_PRESET_ULTRA=1" executable properties