Re: [Mesa-dev] [PATCH] glsl: implement switch flow control using a loop

2014-10-10 Thread Francisco Jerez
Tapani Pälli tapani.pa...@intel.com writes: Hi; Any comments on this approach? I have also a branch that implements a 'switch specific dead code elimination pass' but it is only enough to fix non-conditional breaks (fs-exec-after-break.shader_test). If I understand correctly fixing

Re: [Mesa-dev] [PATCH] glsl: implement switch flow control using a loop

2014-08-10 Thread Tapani Pälli
Hi; Any comments on this approach? I have also a branch that implements a 'switch specific dead code elimination pass' but it is only enough to fix non-conditional breaks (fs-exec-after-break.shader_test). If I understand correctly fixing conditional breaks would need adding switch breaks as part

[Mesa-dev] [PATCH] glsl: implement switch flow control using a loop

2014-08-06 Thread Tapani Pälli
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