Lines Matching defs:mem_ctx
148 replace_discard(void *mem_ctx, ir_variable *var, ir_discard *ir)
154 condition = new(mem_ctx) ir_constant(true);
157 new(mem_ctx) ir_assignment(new(mem_ctx) ir_dereference_variable(var),
173 void *mem_ctx = hieralloc_parent(ir);
175 ir_variable *temp = new(mem_ctx) ir_variable(glsl_type::bool_type,
179 new(mem_ctx) ir_assignment(new(mem_ctx) ir_dereference_variable(temp),
180 new(mem_ctx) ir_constant(false), NULL);
186 replace_discard(mem_ctx, temp, then_discard);
189 replace_discard(mem_ctx, temp, else_discard);
192 discard->condition = new(mem_ctx) ir_dereference_variable(temp);