diff options
author | Eric Anholt <[email protected]> | 2012-02-07 22:59:24 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-03-13 13:50:08 -0700 |
commit | ead3589aa2810b66164178a1d55d2063cfa3b041 (patch) | |
tree | 14cf2e5f97a12efcbdf8ffd22d9d71c93e37dd0f /src/gallium/drivers/rbug | |
parent | b536ac6b2bc54ad9bb6e58fbd307055e419a288f (diff) |
glsl: Avoid extra if statements for logic and/or with no side effects.
This avoids extra if statements in the common case of just comparing
two expressions that don't involve assignments or function calls,
along with simplifying the handling of constant expressions. Reduces
i965 instructions generated in unigine tropics and sanctuary,
yofrankie, warsow, gstreamer shaders, and the weston compositor.
shader-db results:
Total instructions: 213052 -> 212752
38/1246 programs affected (3.0%)
14309 -> 14009 instructions in affected programs (2.1% reduction)
Diffstat (limited to 'src/gallium/drivers/rbug')
0 files changed, 0 insertions, 0 deletions