From bd189dbd772ff9c25741b47a22f4d2828eeb15f9 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 27 Mar 2024 16:39:03 -0600 Subject: [PATCH] glsl: allow out arrays in #110 with allow_glsl_120_subset_in_110 CC: mesa-stable Reviewed-by: Timothy Arceri Part-of: --- 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 1d751ff323f..93e989f31b7 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -6079,7 +6079,7 @@ ast_parameter_declarator::hir(exec_list *instructions, */ if ((var->data.mode == ir_var_function_inout || var->data.mode == ir_var_function_out) && glsl_type_is_array(type) - && !state->check_version(120, 100, &loc, + && !state->check_version(state->allow_glsl_120_subset_in_110 ? 110 : 120, 100, &loc, "arrays cannot be out or inout parameters")) { type = &glsl_type_builtin_error; }