glsl2: Add and use new variable mode ir_var_temporary
This is quite a large patch because breaking it into smaller pieces would result in the tree being intermitently broken. The big changes are: * Add the ir_var_temporary variable mode * Change the ir_variable constructor to take the mode as a parameter and correctly specify the mode for all ir_varables. * Change the linker to not cross validate ir_var_temporary variables. * Change the linker to pull all ir_var_temporary variables from global scope into 'main'.
This commit is contained in:
@@ -298,7 +298,8 @@ ir_mat_op_to_vec_visitor::visit_leave(ir_assignment *assign)
|
||||
ir_assignment *assign;
|
||||
|
||||
op_var[i] = new(base_ir) ir_variable(expr->operands[i]->type,
|
||||
"mat_op_to_vec");
|
||||
"mat_op_to_vec",
|
||||
ir_var_temporary);
|
||||
base_ir->insert_before(op_var[i]);
|
||||
|
||||
lhs_deref = new(base_ir) ir_dereference_variable(op_var[i]);
|
||||
|
Reference in New Issue
Block a user