mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 16:30:10 +01:00
AST to IR: Mark 'varying' in a vertex shader as 'out'
This commit is contained in:
parent
654c057257
commit
0b67823462
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue