summaryrefslogtreecommitdiffstats
path: root/src/SConscript
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2014-08-06 09:46:54 +0300
committerTapani Pälli <[email protected]>2014-10-20 07:55:58 +0300
commit73dd50acf6d244979c2a657906aa56d3ac60d550 (patch)
tree5b406b48aa978187ab817819442ecf365de54df3 /src/SConscript
parent6212d2402df4ad0658cbb98ce889e35ef5f32fa3 (diff)
glsl: implement switch flow control using a loop
Patch removes old variable based logic for handling a break inside switch. Switch is put inside a loop so that existing infrastructure for loop flow control can be used for the switch, now also dead code elimination works properly. Possible 'continue' call inside a switch needs now special handling which is taken care of by detecting continue, breaking out and calling continue for the outside loop. v2: remove one unnecessary ir_expression (Curro) Fixes following Piglit tests: fs-exec-after-break.shader_test fs-conditional-break.shader_test No Piglit or es3conform regressions. Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/SConscript')
0 files changed, 0 insertions, 0 deletions