mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
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 commit97929b1aaf)
This commit is contained in:
parent
c7430bbc3e
commit
636a917ca4
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue