mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
glsl2: Don't tree-grafting out assignment to an out variable.
Fixes: glsl-deadcode-varying.
This commit is contained in:
parent
9f82806c7b
commit
b259eb2804
1 changed files with 4 additions and 0 deletions
|
|
@ -319,6 +319,10 @@ tree_grafting_basic_block(ir_instruction *bb_first,
|
|||
if (!lhs_var)
|
||||
continue;
|
||||
|
||||
if (lhs_var->mode == ir_var_out ||
|
||||
lhs_var->mode == ir_var_inout)
|
||||
continue;
|
||||
|
||||
struct variable_entry *entry = info->refs->get_variable_entry(lhs_var);
|
||||
|
||||
if (!entry->declaration ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue