diff options
author | Eric Anholt <[email protected]> | 2013-06-06 10:14:41 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-06-10 14:04:24 -0700 |
commit | 263a7e4cd992738814575b04d2de24ca0a0ad08a (patch) | |
tree | 6c5e756aa0c4af3f830faff693e57aecf3ea4876 /src/mesa/program | |
parent | 1ff10f92e77625bd17f5825b8f5aee4d355587fc (diff) |
i965/vs: Use the MAD instruction when possible.
This is different from how we do it in the FS - we are using MAD even when
some of the args are constants, because with the relatively unrestrained
ability to schedule a MOV to prepare a temporary with that data, we can
get lower latency for the sequence of instructions.
No significant performance difference on GLB2.7 trex (n=33/34), though it
doesn't have that many MADs. I noticed MAD opportunities while reading
the code for the DOTA2 bug.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/program')
0 files changed, 0 insertions, 0 deletions