* register pressure */
int work_registers;
- /* Used for cont/last hinting. Increase when a tex op is added.
- * Decrease when a tex op is removed. */
- int texture_op_count;
-
/* The number of uniforms allowable for the fast path */
int uniform_cutoff;
ins.mask &= instr->dest.write_mask;
emit_mir_instruction(ctx, ins);
-
- /* TODO: Set .cont/.last automatically via dataflow analysis */
- ctx->texture_op_count++;
}
void
/* Insert the new instruction */
mir_insert_instruction_before(ctx, mir_next_op(ins), dup);
- /* TODO: Set .cont/.last automatically via dataflow analysis */
- ctx->texture_op_count++;
-
/* We'll need both instructions to write to the same index, so
* rewrite to use a register */
ins->texture.in_reg_full = (isz == 32);
ins->texture.sampler_type = midgard_sampler_type(ins->dest_type);
- ctx->texture_op_count--;
-
if (mir_op_computes_derivatives(ctx->stage, ins->texture.op)) {
ins->texture.cont = !ins->helper_terminate;
ins->texture.last = ins->helper_terminate || ins->helper_execute;