pan/mdg: Explicitly type 64-bit uniform moves

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>
This commit is contained in:
Alyssa Rosenzweig
2020-06-12 12:20:52 -04:00
parent c93753e618
commit 5e5ea25a0d

View 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;