glsl: don't flatten if-blocks with dynamic array indices
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 17 Nov 2016 21:24:07 +0000 (22:24 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 21 Nov 2016 07:18:47 +0000 (08:18 +0100)
commit47db6b4600cfd3919c6120d392950d624b5a6ea7
tree8573d6de77895c8bc80f79b8239952db0f3c6209
parent39c47e7698fdcc6fc215daf973d8762cfb8b02ca
glsl: don't flatten if-blocks with dynamic array indices

This fixes the regression of radeonsi in
glsl-1.10/execution/variable-indexing/vs-output-array-vec3-index-wr
caused by commit 74e39de9324d2d2333cda6adca50ae2a3fc36de2.

Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/lower_if_to_cond_assign.cpp