glsl: Implement the GLSL 1.30+ discard control flow rule in GLSL IR.
authorEric Anholt <eric@anholt.net>
Fri, 4 May 2012 20:08:46 +0000 (13:08 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 15 May 2012 00:03:51 +0000 (17:03 -0700)
commit3de1395fa5a563c13774ac1c38722c16cecc521d
treeb501f3cc408f359d9681ca349f0f06f9bfcd3620
parente21b9f1f19d2345026a7fbe095a776d0b64557ec
glsl: Implement the GLSL 1.30+ discard control flow rule in GLSL IR.

Previously, I tried implementing this in the i965 driver, but did so
in a way that violated the intent of the spec, and broke Tropics.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/Makefile.sources
src/glsl/ir_optimization.h
src/glsl/linker.cpp
src/glsl/lower_discard_flow.cpp [new file with mode: 0644]