mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-21 03:10:35 +01:00
pan/mdg: Remove texture_op_count
Was used as a crude approximation of the terminate flag, which we now can do properly. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>
This commit is contained in:
parent
344dd91497
commit
69e4d4fabe
4 changed files with 0 additions and 15 deletions
|
|
@ -274,10 +274,6 @@ typedef struct compiler_context {
|
|||
* 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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1917,9 +1917,6 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr,
|
|||
}
|
||||
|
||||
emit_mir_instruction(ctx, ins);
|
||||
|
||||
/* Used for .cont and .last hinting */
|
||||
ctx->texture_op_count++;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -119,9 +119,6 @@ midgard_emit_derivatives(compiler_context *ctx, nir_alu_instr *instr)
|
|||
ins.mask &= instr->dest.write_mask;
|
||||
|
||||
emit_mir_instruction(ctx, ins);
|
||||
|
||||
/* TODO: Set .cont/.last automatically via dataflow analysis */
|
||||
ctx->texture_op_count++;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -158,9 +155,6 @@ midgard_lower_derivatives(compiler_context *ctx, midgard_block *block)
|
|||
/* 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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -505,8 +505,6 @@ emit_binary_bundle(compiler_context *ctx,
|
|||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue