diff options
author | Icecream95 <ixn@keemail.me> | 2020-09-07 21:29:28 +1200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-01 02:58:49 +0000 |
commit | 97929b1aaf4d0bbb9214cd7a31ee938c78f7e8bc (patch) | |
tree | 22e5056e38e41255c82fc2fe641ad92a8a8bec03 /src/panfrost/midgard | |
parent | 18404047839920eff14d838b3b3403455fc925f3 (diff) |
pan/mdg: Fix promoted uniform moves with 64-bit types
The move source is the second src, not the first one.
Fixes: 5e5ea25a0da ("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>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/mir_promote_uniforms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/mir_promote_uniforms.c b/src/panfrost/midgard/mir_promote_uniforms.c index 239020dd219..525ce59b35b 100644 --- a/src/panfrost/midgard/mir_promote_uniforms.c +++ b/src/panfrost/midgard/mir_promote_uniforms.c @@ -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); |