summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_array_index.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-06-04 11:19:05 +1000
committerTimothy Arceri <[email protected]>2015-10-15 21:42:24 +1100
commitd9f1f2bbc6690e7ef85d79a857dbb64cf5fd1cd8 (patch)
tree2ce418b8b1c78ee455e195641fe4f89a39c899b4 /src/glsl/ast_array_index.cpp
parent082b1ca2fe75a9b4c2936d4d918b5d0d4f0c6c50 (diff)
glsl: Add AoA support when checking for non-const index
When checking for non-const indexing of interfaces take into account arrays of arrays Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/glsl/ast_array_index.cpp')
-rw-r--r--src/glsl/ast_array_index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp
index 5927c91079b..74d403fdb65 100644
--- a/src/glsl/ast_array_index.cpp
+++ b/src/glsl/ast_array_index.cpp
@@ -235,7 +235,7 @@ _mesa_ast_array_index_to_hir(void *mem_ctx,
ir_var_shader_storage) {
_mesa_glsl_error(&loc, state, "unsized array index must be constant");
}
- } else if (array->type->fields.array->is_interface()
+ } else if (array->type->without_array()->is_interface()
&& (array->variable_referenced()->data.mode == ir_var_uniform ||
array->variable_referenced()->data.mode == ir_var_shader_storage)
&& !state->is_version(400, 0) && !state->ARB_gpu_shader5_enable) {