Mesa (master): pan/mdg: Explicitly type 64-bit uniform moves

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 12 17:11:34 UTC 2020


Module: Mesa
Branch: master
Commit: 5e5ea25a0da97a5dbec6e2fd7409e28ff62714cf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e5ea25a0da97a5dbec6e2fd7409e28ff62714cf

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Fri Jun 12 12:20:52 2020 -0400

pan/mdg: Explicitly type 64-bit uniform moves

Instead of relying on reg_mode.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5443>

---

 src/panfrost/midgard/mir_promote_uniforms.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/panfrost/midgard/mir_promote_uniforms.c b/src/panfrost/midgard/mir_promote_uniforms.c
index 0cd3a86a9dc..a7f2d9e03a0 100644
--- a/src/panfrost/midgard/mir_promote_uniforms.c
+++ b/src/panfrost/midgard/mir_promote_uniforms.c
@@ -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;



More information about the mesa-commit mailing list