pan/mdg: Explicitly type 64-bit uniform moves
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jun 2020 16:20:52 +0000 (12:20 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 12 Jun 2020 16:57:11 +0000 (12:57 -0400)
Instead of relying on reg_mode.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5443>

src/panfrost/midgard/mir_promote_uniforms.c

index 0cd3a86a9dc83b273a1f3519ede7051634ef1284..a7f2d9e03a0b1db59daf79e2d38c05e9501eb930 100644 (file)
@@ -194,6 +194,8 @@ midgard_promote_uniforms(compiler_context *ctx)
                 if (needs_move) {
                         unsigned type_size = nir_alu_type_get_type_size(ins->dest_type);
                         midgard_instruction mov = v_mov(promoted, ins->dest);
+                        mov.dest_type = nir_type_uint | type_size;
+                        mov.src_types[0] = mov.dest_type;
 
                         if (type_size == 64)
                                 mov.alu.reg_mode = midgard_reg_mode_64;