Home | History | Annotate | Download | only in glsl

Lines Matching refs:mem_ctx

110 move_block_to_cond_assign(void *mem_ctx,
134 new(mem_ctx) ir_expression(ir_binop_logic_and,
136 cond_expr->clone(mem_ctx, NULL),
139 assign->condition = cond_expr->clone(mem_ctx, NULL);
143 new(mem_ctx) ir_expression(ir_binop_logic_and,
145 cond_expr->clone(mem_ctx, NULL),
188 void *mem_ctx = ralloc_parent(ir);
195 new(mem_ctx) ir_variable(glsl_type::bool_type,
201 new(mem_ctx) ir_dereference_variable(then_var);
203 assign = new(mem_ctx) ir_assignment(then_cond, ir->condition);
206 move_block_to_cond_assign(mem_ctx, ir, then_cond,
222 new(mem_ctx) ir_variable(glsl_type::bool_type,
228 new(mem_ctx) ir_dereference_variable(else_var);
231 new(mem_ctx) ir_expression(ir_unop_logic_not,
232 then_cond->clone(mem_ctx, NULL));
234 assign = new(mem_ctx) ir_assignment(else_cond, inverse);
237 move_block_to_cond_assign(mem_ctx, ir, else_cond,