diff options
author | Eric Anholt <[email protected]> | 2012-11-08 16:06:24 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-12-04 17:11:11 -0800 |
commit | a64c1eb9b110f29b8abf803a8256306702629bdc (patch) | |
tree | 25c2e5ec6a799f667e388412add80007ebde3c1e /src/getopt | |
parent | 67d9e7b5816a7643220c854ea1ed330f8363a3e0 (diff) |
i965/fs: Add support for uniform array access with a variable index.
Serious Sam 3 had a shader hitting this path, but it's used rarely so it
didn't show a significant performance difference (n=7). It does reduce
compile time massively, though -- one shader goes from 14s compile time
and 11723 instructions generated to .44s and 499 instructions.
Note that some shaders lose 16-wide mode because we don't support
16-wide and pull constants at the moment (generally, things looping over
a few-element array where the loop isn't getting unrolled). Given that
those shaders are being generated with 15-20% fewer instructions, it
probably outweighs the loss of 16-wide.
Diffstat (limited to 'src/getopt')
0 files changed, 0 insertions, 0 deletions