From: Italo Nicola Date: Wed, 26 Aug 2020 14:56:13 +0000 (+0000) Subject: panfrost: fix undefined value access on mir_set_intr_mask() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11012611d7fb6b26e0959bc462d47131699be6e2;p=mesa.git panfrost: fix undefined value access on mir_set_intr_mask() Signed-off-by: Italo Nicola Reviewed-by: Alyssa Rosenzweig Part-of: --- 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