Commit 97929b1a authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

pan/mdg: Fix promoted uniform moves with 64-bit types

The move source is the second src, not the first one.

Fixes: 5e5ea25a

 ("pan/mdg: Explicitly type 64-bit uniform moves")
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!8264>
parent 18404047
......@@ -195,7 +195,7 @@ midgard_promote_uniforms(compiler_context *ctx)
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;
mov.src_types[1] = mov.dest_type;
uint16_t rounded = mir_round_bytemask_up(mir_bytemask(ins), type_size);
mir_set_bytemask(&mov, rounded);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment