diff options
author | Rob Herring <robh@kernel.org> | 2016-01-08 09:25:37 -0600 |
---|---|---|
committer | Mauro Rossi <issor.oruam@gmail.com> | 2016-11-01 20:41:59 +0100 |
commit | 10493d443283f84b63a91be48ed0d913d3a9b7a5 (patch) | |
tree | 0297f3170327f50bcabbb0e150507710cf7f9197 | |
parent | 7618870ed442a6b1f4fc60888403c0bbbbfa35b5 (diff) | |
download | external_mesa3d-10493d443283f84b63a91be48ed0d913d3a9b7a5.zip external_mesa3d-10493d443283f84b63a91be48ed0d913d3a9b7a5.tar.gz external_mesa3d-10493d443283f84b63a91be48ed0d913d3a9b7a5.tar.bz2 |
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 <robh@kernel.org>
-rw-r--r-- | src/compiler/glsl/ast_array_index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ast_array_index.cpp b/src/compiler/glsl/ast_array_index.cpp index e29dafb..f236fbf 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", |