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

Author: Italo Nicola <italonic...@collabora.com>
Date:   Wed Aug 26 14:56:13 2020 +0000

panfrost: fix undefined value access on mir_set_intr_mask()

Signed-off-by: Italo Nicola <italonic...@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6439>

---

 src/panfrost/midgard/midgard_compile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/midgard/midgard_compile.c 
b/src/panfrost/midgard/midgard_compile.c
index 1f54cfdcf39..06ed3f62cf4 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -1291,8 +1291,8 @@ mir_set_intr_mask(nir_instr *instr, midgard_instruction 
*ins, bool is_read)
 
         /* Once we have the NIR mask, we need to normalize to work in 32-bit 
space */
         unsigned bytemask = pan_to_bytemask(dsize, nir_mask);
-        mir_set_bytemask(ins, bytemask);
         ins->dest_type = nir_type_uint | dsize;
+        mir_set_bytemask(ins, bytemask);
 }
 
 /* Uniforms and UBOs use a shared code path, as uniforms are just (slightly

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to