From: Ian Romanick Date: Wed, 10 Mar 2010 08:28:59 +0000 (-0800) Subject: AST to IR: Mark 'varying' in a vertex shader as 'out' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b678234625fac67a89285ad2871dedc891fb1b1;p=mesa.git AST to IR: Mark 'varying' in a vertex shader as 'out' --- diff --git a/ast_to_hir.cpp b/ast_to_hir.cpp index faa13abd599..becc8327fb6 100644 --- a/ast_to_hir.cpp +++ b/ast_to_hir.cpp @@ -855,7 +855,7 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual, else if (qual->attribute || qual->in || (qual->varying && (state->target == fragment_shader))) var->mode = ir_var_in; - else if (qual->out) + else if (qual->out || (qual->varying && (state->target == vertex_shader))) var->mode = ir_var_out; else if (qual->uniform) var->mode = ir_var_uniform;