OSDN Git Service

glsl: handle ast_aggregate in has_sequence_subexpression. (v2)
authorDave Airlie <airlied@redhat.com>
Tue, 3 May 2016 07:16:27 +0000 (17:16 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:48:37 +0000 (15:48 +0100)
commit997bcc45ecdc5046e60b43975b4fc22a55dbe46b
tree1c0ed05cbd682045ccfbd5fdd029740703566fb3
parenta0e36438a87c68f87360b36f8d0a745cac52d61d
glsl: handle ast_aggregate in has_sequence_subexpression. (v2)

GL43-CTS.compute_shader.work-group-size does
uniform uint g_uniform[gl_WorkGroupSize.z + 20] = { 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 };

The initializer triggers the GLSL 4.30/GLES3 tests
for constant sequence subexpressions, so it doesn't
happen unless you are using those, so just return
false as this path is now reachable.

v2: update commit msg with diagnosis
Acked-by: Timothy Arceri <timothy.arceri@collabora.com>
Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 4336196b7fc61166a36babdabdf5dd004ec9ee55)
src/compiler/glsl/ast_to_hir.cpp