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

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

Fixes: 5e5ea25a0d ("pan/mdg: Explicitly type 64-bit uniform moves")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8264>
(cherry picked from commit 97929b1aaf)
This commit is contained in:
Icecream95 2020-09-07 21:29:28 +12:00 committed by Dylan Baker
parent c7430bbc3e
commit 636a917ca4
2 changed files with 2 additions and 2 deletions

View file

@ -400,7 +400,7 @@
"description": "pan/mdg: Fix promoted uniform moves with 64-bit types",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "5e5ea25a0da97a5dbec6e2fd7409e28ff62714cf"
},

View file

@ -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);