glsl: add new variable declaration in function body in lower_output_read
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
This commit is contained in:
@@ -97,6 +97,7 @@ output_read_remover::visit(ir_dereference_variable *ir)
|
||||
temp = new(var_ctx) ir_variable(ir->var->type, ir->var->name,
|
||||
ir_var_temporary);
|
||||
hash_table_insert(replacements, temp, ir->var);
|
||||
ir->var->insert_after(temp);
|
||||
}
|
||||
|
||||
/* Update the dereference to use the temporary */
|
||||
|
||||
Reference in New Issue
Block a user