From 11012611d7fb6b26e0959bc462d47131699be6e2 Mon Sep 17 00:00:00 2001 From: Italo Nicola Date: Wed, 26 Aug 2020 14:56:13 +0000 Subject: [PATCH] panfrost: fix undefined value access on mir_set_intr_mask() Signed-off-by: Italo Nicola Reviewed-by: Alyssa Rosenzweig Part-of: --- 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 -- 2.30.2