From: Alyssa Rosenzweig Date: Mon, 8 Jul 2019 18:51:14 +0000 (-0700) Subject: panfrost/midgard: Don't try to "alias" texture registers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1a4dfa74b212bf55ca245b63f18e379c3aa57af;p=mesa.git panfrost/midgard: Don't try to "alias" texture registers It won't work. Just, stop it. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 676a46e1236..1e08e349eee 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -1705,12 +1705,7 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr, emit_mir_instruction(ctx, ins); - /* Simultaneously alias the destination and emit a move for it. The move will be eliminated if possible */ - int o_reg = REGISTER_TEXTURE_BASE + out_reg, o_index = nir_dest_index(ctx, &instr->dest); - alias_ssa(ctx, o_index, SSA_FIXED_REGISTER(o_reg)); - ctx->texture_index[reg] = o_index; - midgard_instruction ins2 = v_mov(SSA_FIXED_REGISTER(o_reg), blank_alu_src, o_index); emit_mir_instruction(ctx, ins2);