From 81becaa685a71778e16ed0cc0c510186d5e682f5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 13 Jan 2021 23:16:30 -0500 Subject: [PATCH] pan/bi: Fix assertion Fixes: bef3fedc814 ("pan/bi: Lower 8bit fragment outputs to 16bit") Signed-off-by: Alyssa Rosenzweig Reported-by: Coverity Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 2e9c42a3efb..86cc1ec1e08 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -2135,7 +2135,7 @@ bifrost_nir_lower_i8_fragout_impl(struct nir_builder *b, nir_alu_type type = nir_alu_type_get_base_type(nir_intrinsic_src_type(intr)); - assert(type == nir_type_int || nir_type_uint); + assert(type == nir_type_int || type == nir_type_uint); b->cursor = nir_before_instr(instr); nir_ssa_def *cast = type == nir_type_int ?