}
| layout_qualifier type_specifier any_identifier
{
- if (state->allow_layout_qualifier_on_function_parameter) {
- void *ctx = state->linalloc;
- $$ = new(ctx) ast_parameter_declarator();
- $$->set_location_range(@2, @3);
- $$->type = new(ctx) ast_fully_specified_type();
- $$->type->set_location(@2);
- $$->type->specifier = $2;
- $$->identifier = $3;
- state->symbols->add_variable(new(state) ir_variable(NULL, $3, ir_var_auto));
- } else {
- _mesa_glsl_error(&@1, state,
- "is is not allowed on function parameter");
- YYERROR;
- }
+ _mesa_glsl_error(&@1, state, "is is not allowed on function parameter");
+ YYERROR;
}
| type_specifier any_identifier array_specifier
{
ctx->Const.AllowGLSL120SubsetIn110;
this->allow_builtin_variable_redeclaration =
ctx->Const.AllowGLSLBuiltinVariableRedeclaration;
- this->allow_layout_qualifier_on_function_parameter =
- ctx->Const.AllowLayoutQualifiersOnFunctionParameters;
this->cs_input_local_size_variable_specified = false;
bool allow_extension_directive_midshader;
bool allow_glsl_120_subset_in_110;
bool allow_builtin_variable_redeclaration;
- bool allow_layout_qualifier_on_function_parameter;
/**
* Known subroutine type declarations.
DRI_CONF_ALLOW_HIGHER_COMPAT_VERSION(false)
DRI_CONF_FORCE_GLSL_ABS_SQRT(false)
DRI_CONF_GLSL_CORRECT_DERIVATIVES_AFTER_DISCARD(false)
- DRI_CONF_ALLOW_GLSL_LAYOUT_QUALIFIER_ON_FUNCTION_PARAMETERS(false)
DRI_CONF_ALLOW_DRAW_OUT_OF_ORDER(false)
DRI_CONF_FORCE_COMPAT_PROFILE(false)
DRI_CONF_FORCE_GL_NAMES_REUSE(false)
driQueryOptionb(optionCache, "force_glsl_abs_sqrt");
options->allow_glsl_cross_stage_interpolation_mismatch =
driQueryOptionb(optionCache, "allow_glsl_cross_stage_interpolation_mismatch");
- options->allow_glsl_layout_qualifier_on_function_parameters =
- driQueryOptionb(optionCache, "allow_glsl_layout_qualifier_on_function_parameters");
options->allow_draw_out_of_order =
driQueryOptionb(optionCache, "allow_draw_out_of_order");
options->force_gl_names_reuse =
bool vs_position_always_invariant;
bool force_glsl_abs_sqrt;
bool allow_glsl_cross_stage_interpolation_mismatch;
- bool allow_glsl_layout_qualifier_on_function_parameters;
bool allow_draw_out_of_order;
bool force_integer_tex_nearest;
bool force_gl_names_reuse;
GLboolean AllowHigherCompatVersion;
/**
- * Allow layout qualifiers on function parameters.
- */
- GLboolean AllowLayoutQualifiersOnFunctionParameters;
-
- /**
* Allow extra tokens at end of preprocessor directives. The CTS now tests
* to make sure these are not allowed. However, previously drivers would
* allow them to exist and just issue a warning so some old applications
if (options->allow_glsl_relaxed_es)
consts->AllowGLSLRelaxedES = GL_TRUE;
- if (options->allow_glsl_layout_qualifier_on_function_parameters)
- consts->AllowLayoutQualifiersOnFunctionParameters = GL_TRUE;
-
consts->MinMapBufferAlignment =
screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT);
<option name="allow_glsl_relaxed_es" value="true"/>
</application>
- <application name="No Mans Sky" executable="NMS.exe">
- <option name="force_glsl_extensions_warn" value="true" />
- <option name="allow_glsl_layout_qualifier_on_function_parameters" value="true" />
- </application>
-
<application name="Champions of Regnum" executable="game">
<option name="allow_extra_pp_tokens" value="true" />
</application>
<application name="Counter-Strike Global Offensive" executable="csgo_linux64">
<option name="radeonsi_zerovram" value="true" />
</application>
- <application name="No Mans Sky" executable="NMS.exe">
- <option name="radeonsi_zerovram" value="true" />
- </application>
<application name="Rocket League" executable="RocketLeague">
<option name="radeonsi_zerovram" value="true" />
</application>
DRI_CONF_OPT_B(allow_glsl_cross_stage_interpolation_mismatch, def, \
"Allow interpolation qualifier mismatch across shader stages")
-#define DRI_CONF_ALLOW_GLSL_LAYOUT_QUALIFIER_ON_FUNCTION_PARAMETERS(def) \
- DRI_CONF_OPT_B(allow_glsl_layout_qualifier_on_function_parameters, def, \
- "Allow layout qualifiers on function parameters.")
-
#define DRI_CONF_ALLOW_DRAW_OUT_OF_ORDER(def) \
DRI_CONF_OPT_B(allow_draw_out_of_order, def, \
"Allow out-of-order draw optimizations. Set when Z fighting doesn't have to be accurate.")