mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
glsl: allow conservative depth qualifiers in GLSL 420
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
d50ffb5e46
commit
87906cbc37
1 changed files with 3 additions and 1 deletions
|
|
@ -3326,6 +3326,7 @@ apply_layout_qualifier_to_variable(const struct ast_type_qualifier *qual,
|
||||||
+ qual->flags.q.depth_less
|
+ qual->flags.q.depth_less
|
||||||
+ qual->flags.q.depth_unchanged;
|
+ qual->flags.q.depth_unchanged;
|
||||||
if (depth_layout_count > 0
|
if (depth_layout_count > 0
|
||||||
|
&& !state->is_version(420, 0)
|
||||||
&& !state->AMD_conservative_depth_enable
|
&& !state->AMD_conservative_depth_enable
|
||||||
&& !state->ARB_conservative_depth_enable) {
|
&& !state->ARB_conservative_depth_enable) {
|
||||||
_mesa_glsl_error(loc, state,
|
_mesa_glsl_error(loc, state,
|
||||||
|
|
@ -3708,7 +3709,8 @@ get_variable_being_redeclared(ir_variable *var, YYLTYPE loc,
|
||||||
earlier->data.interpolation = var->data.interpolation;
|
earlier->data.interpolation = var->data.interpolation;
|
||||||
|
|
||||||
/* Layout qualifiers for gl_FragDepth. */
|
/* Layout qualifiers for gl_FragDepth. */
|
||||||
} else if ((state->AMD_conservative_depth_enable ||
|
} else if ((state->is_version(420, 0) ||
|
||||||
|
state->AMD_conservative_depth_enable ||
|
||||||
state->ARB_conservative_depth_enable)
|
state->ARB_conservative_depth_enable)
|
||||||
&& strcmp(var->name, "gl_FragDepth") == 0
|
&& strcmp(var->name, "gl_FragDepth") == 0
|
||||||
&& earlier->type == var->type
|
&& earlier->type == var->type
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue