From 10493d443283f84b63a91be48ed0d913d3a9b7a5 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Fri, 8 Jan 2016 09:25:37 -0600 Subject: [PATCH] HACK: glsl: disable error on non-constant array indexing DRM HWC has a shader program that hits this error. Work-around it by ignoring the error. Signed-off-by: Rob Herring --- src/compiler/glsl/ast_array_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/ast_array_index.cpp b/src/compiler/glsl/ast_array_index.cpp index e29dafb7907..f236fbfddc0 100644 --- a/src/compiler/glsl/ast_array_index.cpp +++ b/src/compiler/glsl/ast_array_index.cpp @@ -292,7 +292,7 @@ _mesa_ast_array_index_to_hir(void *mem_ctx, !state->EXT_gpu_shader5_enable && !state->OES_gpu_shader5_enable) { if (state->is_version(130, 300)) - _mesa_glsl_error(&loc, state, + _mesa_glsl_warning(&loc, state, "sampler arrays indexed with non-constant " "expressions are forbidden in GLSL %s " "and later", -- 2.11.0