Mesa (master): panfrost/midgard: Don't try to "alias" texture registers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 10 13:47:53 UTC 2019
Module: Mesa
Branch: master
Commit: a1a4dfa74b212bf55ca245b63f18e379c3aa57af
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1a4dfa74b212bf55ca245b63f18e379c3aa57af
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Mon Jul 8 11:51:14 2019 -0700
panfrost/midgard: Don't try to "alias" texture registers
It won't work. Just, stop it.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
src/gallium/drivers/panfrost/midgard/midgard_compile.c | 5 -----
1 file changed, 5 deletions(-)
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);
More information about the mesa-commit
mailing list