summaryrefslogtreecommitdiffstats
path: root/src/mesa/math/m_translate.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-28 18:00:27 -0700
committerMatt Turner <[email protected]>2014-06-30 22:31:05 -0700
commitbcbb7c41b75aa780f93f32937697c2999ff2eb36 (patch)
treed5794d0bc35cd49fd27fa3a3227591963b05064b /src/mesa/math/m_translate.h
parente58992aedd9693f0356f3691d510a5e976473a0c (diff)
i965/fs: Let sat-prop ignore live ranges if producer already has sat.
This sequence (where both x and w are used afterwards) wasn't handled. mul.sat x, y, z ... mov.sat w, x We assumed that if x was used after the mov.sat, that we couldn't propagate the saturate modifier, but in fact x was already saturated. So ignore the live range check if the producing instruction already saturates its result. Cuts one instruction from hundreds of TF2 shaders. total instructions in shared programs: 1995631 -> 1994951 (-0.03%) instructions in affected programs: 155248 -> 154568 (-0.44%) Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/math/m_translate.h')
0 files changed, 0 insertions, 0 deletions