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-Tag: 062012170305~10660^2~625^2~658 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b678234625fac67a89285ad2871dedc891fb1b1;p=profile%2Fivi%2Fmesa.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 faa13ab..becc832 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;