summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_hierarchical_visitor.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-02-24 01:00:22 -0800
committerKenneth Graunke <[email protected]>2015-02-24 15:24:52 -0800
commit23d42b46e306d4104e534842f6dec3500d331cae (patch)
tree8d69a06dd7973bdf68cd63eff26565c34243b758 /src/glsl/ir_hierarchical_visitor.h
parentd77b186871389be10a68546da0e3ada8134ae539 (diff)
glsl: Delete dead discard conditions in constant folding.
opt_constant_folding() already detects conditional assignments where the condition is constant, and either deletes the assignment or the condition. Make it handle discards in the same fashion. Spotted happening in the wild in Tropico 5 shaders. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.h')
0 files changed, 0 insertions, 0 deletions