From d619ff009b57e6949e88b9a607cc8f089d6d7ad2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 28 May 2020 12:39:14 -0400 Subject: pan/bi: Fix branch condition typesize Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3