diff options
author | Ian Romanick <[email protected]> | 2010-03-10 00:28:59 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-10 00:28:59 -0800 |
commit | 0b678234625fac67a89285ad2871dedc891fb1b1 (patch) | |
tree | aa07a1fdf9fb16e5c57f19b30c525f4a7d12bcdb /ast_to_hir.cpp | |
parent | 654c05725704fdb589ebe3bff7c88d695675a2d9 (diff) |
AST to IR: Mark 'varying' in a vertex shader as 'out'
Diffstat (limited to 'ast_to_hir.cpp')
-rw-r--r-- | ast_to_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |