summaryrefslogtreecommitdiff
path: root/ir_dead_code_local.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-07 18:53:06 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-07 18:53:06 -0700
commit15d162d7b1ebe09b0bdaf43194529f9ef995c623 (patch)
tree47f860e36c543b053726ac6f2ef4aa9bbfa64a43 /ir_dead_code_local.cpp
parent6cd2a5cc4b8eb1d445f2ae5311db8fda9d46b7a1 (diff)
Don't process empty shaders
Some valid shaders, such as 'precision highp float;', evaluate to empty sets of instructions. This causes some of the optimization stages to enter infinite loops. Instead, don't bother processing the empty ones.
Diffstat (limited to 'ir_dead_code_local.cpp')
0 files changed, 0 insertions, 0 deletions