AST to IR: Mark 'varying' in a vertex shader as 'out'
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Mar 2010 08:28:59 +0000 (00:28 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 10 Mar 2010 08:28:59 +0000 (00:28 -0800)
ast_to_hir.cpp

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