Lines Matching refs:mem_ctx
56 mem_ctx = ralloc_parent(discarded); in lower_discard_flow_visitor()
71 void *mem_ctx; member in lower_discard_flow_visitor
88 ir_dereference *lhs = new(mem_ctx) ir_dereference_variable(discarded); in visit_enter()
89 ir_rvalue *rhs = new(mem_ctx) ir_constant(true); in visit_enter()
90 ir_assignment *assign = new(mem_ctx) ir_assignment(lhs, rhs); in visit_enter()
110 ir_dereference *lhs = new(mem_ctx) ir_dereference_variable(discarded); in visit_enter()
111 ir_rvalue *rhs = new(mem_ctx) ir_constant(false); in visit_enter()
112 ir_assignment *assign = new(mem_ctx) ir_assignment(lhs, rhs); in visit_enter()
121 ir_rvalue *if_condition = new(mem_ctx) ir_dereference_variable(discarded); in generate_discard_break()
122 ir_if *if_inst = new(mem_ctx) ir_if(if_condition); in generate_discard_break()
124 ir_instruction *br = new(mem_ctx) ir_loop_jump(ir_loop_jump::jump_break); in generate_discard_break()
133 void *mem_ctx = ir; in lower_discard_flow() local
135 ir_variable *var = new(mem_ctx) ir_variable(glsl_type::bool_type, in lower_discard_flow()