mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
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:
parent
c93753e618
commit
5e5ea25a0d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue