aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-12-16 16:53:52 -0500
committerMarge Bot <[email protected]>2019-12-17 17:42:57 +0000
commit96df5f1fbf3511be88adb1f9efa5eddd40fa9868 (patch)
tree5aec079e4f52788aa5801764584537d375a75576 /src/panfrost/midgard
parentbf5d8cfd282396f0ab02bfdcfe1af2be49f35fa2 (diff)
pan/midgard: Use a reg temporary for mutiple writes
Bug in texelfetch implementation from inspection. Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3125>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c2
1 files changed, 1 insertions, 1 deletions
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);