From: Alyssa Rosenzweig Date: Mon, 16 Dec 2019 21:53:52 +0000 (-0500) Subject: pan/midgard: Use a reg temporary for mutiple writes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96df5f1fbf3511be88adb1f9efa5eddd40fa9868;p=mesa.git 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: --- 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);