From 96df5f1fbf3511be88adb1f9efa5eddd40fa9868 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 16 Dec 2019 16:53:52 -0500 Subject: [PATCH] pan/midgard: Use a reg temporary for mutiple writes Bug in texelfetch implementation from inspection. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- src/panfrost/midgard/midgard_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 58d7902577a..01729304d42 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1744,7 +1744,7 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr, if (midgard_texop == TEXTURE_OP_TEXEL_FETCH) { unsigned old_index = index; - index = make_compiler_temp(ctx); + index = make_compiler_temp_reg(ctx); /* mov index, old_index */ midgard_instruction mov = v_mov(old_index, index); -- 2.30.2