diff options
author | Kenneth Graunke <[email protected]> | 2012-11-01 22:04:50 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-11-03 20:28:57 -0700 |
commit | 05882b0d3b69ac14e9bc93460c77f9dc203c2ff9 (patch) | |
tree | 040688e954a8e679722f518df5e686d87bfa76f7 /src/gallium/drivers/nouveau | |
parent | e3542ea51be7e25f249b53a421f57c1ab6816cf1 (diff) |
i965/fs: Compact the virtual GRF arrays.
During code generation, we create tons of temporary variables, many of
which get immediately killed and are never used. Later optimization and
analysis passes, such as compute_live_intervals, loop over all the
virtual GRFs. By compacting them, we can save a lot of overhead.
Reduces compilation time in L4D2's largest fragment shader from 10.2
seconds to 5.2 seconds (50%). Drops compute_live_variables() from
10-12% of another game's startup time to 8%.
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
0 files changed, 0 insertions, 0 deletions