glsl,driconf: add allow_glsl_120_subset_in_110 for SPECviewperf13
[mesa.git] / src / compiler / glsl / ast_function.cpp
index b6b81bf1e142c3152d03f6c2f0d31f86143343db..74985db51cacc4fa58a57b2955297399f9fcbf7b 100644 (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);
          }