glsl: only apply default stream to output blocks
authorTimothy Arceri <timothy.arceri@collabora.com>
Thu, 25 Feb 2016 23:59:14 +0000 (10:59 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 5 Mar 2016 08:07:04 +0000 (19:07 +1100)
This is needed to allow invalid qualifier checks on inputs.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/compiler/glsl/glsl_parser_extras.cpp

index 7a6f5c05abfce9718b38976a9a8d4ff2c8593e27..7e4a891f1dce4ad812a5024c4d411bdfb70b841e 100644 (file)
@@ -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;