From: Timothy Arceri Date: Thu, 25 Feb 2016 23:59:14 +0000 (+1100) Subject: glsl: only apply default stream to output blocks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd53cc7b450b288fec707a27fb2902aa83fc2831;p=mesa.git glsl: only apply default stream to output blocks This is needed to allow invalid qualifier checks on inputs. Reviewed-by: Samuel Iglesias Gonsálvez --- diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index 7a6f5c05abf..7e4a891f1dc 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -924,7 +924,8 @@ _mesa_ast_process_interface_block(YYLTYPE *locp, block->layout.flags.i |= block_interface_qualifier; if (state->stage == MESA_SHADER_GEOMETRY && - state->has_explicit_attrib_stream()) { + state->has_explicit_attrib_stream() && + block->layout.flags.q.out) { /* Assign global layout's stream value. */ block->layout.flags.q.stream = 1; block->layout.flags.q.explicit_stream = 0;