Re: [Mesa-dev] [PATCH] glsl/ast: Stop processing a switch-statement after an error in the init-expression

2017-09-30 Thread Alejandro PiƱeiro
On 30/09/17 04:16, Ian Romanick wrote: > From: Ian Romanick > > This happens to work now because ir_binop_all_equal is used. This > causes vector typed init-expressions to produce scalar Boolean values > after comparison. > > The next commit changes ir_binop_all_equal

[Mesa-dev] [PATCH] glsl/ast: Stop processing a switch-statement after an error in the init-expression

2017-09-29 Thread Ian Romanick
From: Ian Romanick This happens to work now because ir_binop_all_equal is used. This causes vector typed init-expressions to produce scalar Boolean values after comparison. The next commit changes ir_binop_all_equal to ir_binop_equal. Vector typed init-expressions