mirror of https://gitlab.freedesktop.org/mesa/mesa
glsl: allow out arrays in #110 with allow_glsl_120_subset_in_110
CC: mesa-stable Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28439>
This commit is contained in:
parent
6b383ca810
commit
bd189dbd77
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue