diff options
author | Eric Anholt <[email protected]> | 2011-04-09 08:29:59 -1000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-04-13 17:57:53 -0700 |
commit | 4847f802c28e595130bda14055cd52c9b1f51cd7 (patch) | |
tree | ba3193d017e5ded507c65dc8809e12dcd3ec6e15 /src/mesa/program/program_parser.h | |
parent | 811c147220d2630b769e505ce4d40ef9108fe034 (diff) |
i965/fs: Constant-fold immediates in src0 of SEL instructions.
This is like what we do for add/mul, but we have to invert the
predicate to choose the other source instead.
This removes 5 extra moves of constants in nexuiz shaders. No
statistically significant performance difference on my Sandybridge
laptop (n=5).
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/program/program_parser.h')
0 files changed, 0 insertions, 0 deletions