Re: [Mesa-dev] [PATCH] r600g: Workaround for a nested loop bug on Cayman

2013-04-15 Thread Vadim Girlin
On 04/15/2013 10:52 AM, Martin Andersson wrote: On Mon, Apr 15, 2013 at 1:09 AM, Vadim Girlin wrote: On 04/15/2013 01:05 AM, Martin Andersson wrote: There is a bug where a BREAK/CONTINUE followed by LOOP_STARTxxx for nested loops may put the branch stack into a state such that ALU_PUSH_BEFORE

Re: [Mesa-dev] [PATCH] r600g: Workaround for a nested loop bug on Cayman

2013-04-14 Thread Martin Andersson
On Mon, Apr 15, 2013 at 1:09 AM, Vadim Girlin wrote: > On 04/15/2013 01:05 AM, Martin Andersson wrote: >> >> There is a bug where a BREAK/CONTINUE followed by LOOP_STARTxxx for nested >> loops may put the branch stack into a state such that ALU_PUSH_BEFORE >> doesn't work as expected. Workaround t

Re: [Mesa-dev] [PATCH] r600g: Workaround for a nested loop bug on Cayman

2013-04-14 Thread Vadim Girlin
On 04/15/2013 01:05 AM, Martin Andersson wrote: There is a bug where a BREAK/CONTINUE followed by LOOP_STARTxxx for nested loops may put the branch stack into a state such that ALU_PUSH_BEFORE doesn't work as expected. Workaround this by replacing the ALU_PUSH_BEFORE with a PUSH + ALU for nested

[Mesa-dev] [PATCH] r600g: Workaround for a nested loop bug on Cayman

2013-04-14 Thread Martin Andersson
There is a bug where a BREAK/CONTINUE followed by LOOP_STARTxxx for nested loops may put the branch stack into a state such that ALU_PUSH_BEFORE doesn't work as expected. Workaround this by replacing the ALU_PUSH_BEFORE with a PUSH + ALU for nested loops. Fixes piglit tests: spec/!OpenGL 1.1/read-