From: Alyssa Rosenzweig Date: Thu, 28 May 2020 16:39:14 +0000 (-0400) Subject: pan/bi: Fix branch condition typesize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d619ff009b57e6949e88b9a607cc8f089d6d7ad2;p=mesa.git pan/bi: Fix branch condition typesize Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 1e41b53e435..c06fd591638 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -1048,7 +1048,8 @@ bi_set_branch_cond(bi_instruction *branch, nir_src *cond, bool invert) /* TODO: Try to unwrap instead of always bailing */ branch->src[0] = pan_src_index(cond); branch->src[1] = BIR_INDEX_ZERO; - branch->src_types[0] = branch->src_types[1] = nir_type_uint16; + branch->src_types[0] = branch->src_types[1] = nir_type_uint | + nir_src_bit_size(*cond); branch->cond = invert ? BI_COND_EQ : BI_COND_NE; }