diff options
author | Eric Anholt <[email protected]> | 2013-06-07 18:29:50 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-06-10 14:04:24 -0700 |
commit | 9a0bd682f958b642519709b879d4ceb39efbcaff (patch) | |
tree | aef2a574074dc5055c0a8f628badeeefd22d22ff /docs/install.html | |
parent | d28e285d41bbb482384fb2174c92b9f63aa1175f (diff) |
i965/vs: Avoid the MUL/MACH/MOV sequence for small integer multiplies.
We do a lot of multiplies by 3 or 4 for skinning shaders, and we can avoid
the sequence if we just move them into the right argument of the MUL.
On pre-IVB, this means reliably putting a constant in a position where it
can't be constant folded, but that's still better than MUL/MACH/MOV.
Improves GLB 2.7 trex performance by 0.788648% +/- 0.23865% (n=29/30)
v2: Fix test for pre-sandybridge.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]> (v1)
Diffstat (limited to 'docs/install.html')
0 files changed, 0 insertions, 0 deletions