[Mesa-dev] [PATCH] glsl: handle ast_aggregate in has_sequence_subexpression.
Dave Airlie
airlied at gmail.com
Tue May 3 07:17:35 UTC 2016
From: Dave Airlie <airlied at redhat.com>
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 };
we crash in here, returning false, makes things work.
I've no idea if this is in any way correct.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/compiler/glsl/ast_to_hir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index c5cd48f..dd99893 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -2069,7 +2069,7 @@ ast_expression::has_sequence_subexpression() const
return false;
case ast_aggregate:
- unreachable("ast_aggregate: Should never get here.");
+ return false;
case ast_function_call:
unreachable("should be handled by ast_function_expression::hir");
--
2.5.5
More information about the mesa-dev
mailing list