Optimizations of shader compile time
Various optimizations to reduce shader compile time in the test dEQP-VK.ssbo.phys.layout.random.16bit.scalar.13 slow
.
Locally it changes test run time from avg 60.7073
s to 27.5676
s (100 runs).
Not sure if use of STL is allowed here so let me know if I have to rewrite it using custom collections.
One commit moved to separate MR: !14189 (merged).
shader-db for all 3 commits
total instructions in shared programs: 1104355 -> 1104355 (0.00%)
instructions in affected programs: 0 -> 0
helped: 0
HURT: 0
total loops in shared programs: 1295 -> 1295 (0.00%)
loops in affected programs: 0 -> 0
helped: 0
HURT: 0
total cycles in shared programs: 189266218 -> 189266218 (0.00%)
cycles in affected programs: 0 -> 0
helped: 0
HURT: 0
total spills in shared programs: 1893 -> 1893 (0.00%)
spills in affected programs: 0 -> 0
helped: 0
HURT: 0
total fills in shared programs: 2433 -> 2433 (0.00%)
fills in affected programs: 0 -> 0
helped: 0
HURT: 0
total sends in shared programs: 58986 -> 58986 (0.00%)
sends in affected programs: 0 -> 0
helped: 0
HURT: 0
LOST: 0
GAINED: 0
Total CPU time (seconds): 65.10 -> 44.41 (-31.78%)