From 289478ea89dc7793106bcc3cde19dc1455874336 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 25 Mar 2019 23:47:21 -0700 Subject: glsl: Remove redundant conditions when asserting in_qualifier As the code evolved, we ended up with a redundant conditions. Clean this up. Reviewed-by: Ian Romanick --- src/compiler/glsl/glsl_parser_extras.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/compiler/glsl') diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index d59cf8e53a4..ec196299b6a 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -1716,11 +1716,8 @@ set_shader_inout_layout(struct gl_shader *shader, struct _mesa_glsl_parse_state *state) { /* Should have been prevented by the parser. */ - if (shader->Stage == MESA_SHADER_TESS_CTRL || - shader->Stage == MESA_SHADER_VERTEX) { - assert(!state->in_qualifier->flags.i); - } else if (shader->Stage != MESA_SHADER_GEOMETRY && - shader->Stage != MESA_SHADER_TESS_EVAL) { + if (shader->Stage != MESA_SHADER_GEOMETRY && + shader->Stage != MESA_SHADER_TESS_EVAL) { assert(!state->in_qualifier->flags.i); } -- cgit v1.2.3