glsl,driconf: add allow_glsl_120_subset_in_110 for SPECviewperf13

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5459>
This commit is contained in:
Marek Olšák
2020-06-13 17:18:34 -04:00
committed by Marge Bot
parent f8e8701cf1
commit ca719c6e30
10 changed files with 26 additions and 4 deletions
+2 -2
View File
@@ -2110,8 +2110,8 @@ ast_function_expression::hir(exec_list *instructions,
}
if (constructor_type->is_array()) {
if (!state->check_version(120, 300, &loc,
"array constructors forbidden")) {
if (!state->check_version(state->allow_glsl_120_subset_in_110 ? 110 : 120,
300, &loc, "array constructors forbidden")) {
return ir_rvalue::error_value(ctx);
}