pan/bi: Fix assertion

Fixes: bef3fedc81 ("pan/bi: Lower 8bit fragment outputs to 16bit")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reported-by: Coverity
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8489>
This commit is contained in:
Alyssa Rosenzweig 2021-01-13 23:16:30 -05:00 committed by Marge Bot
parent ca834d0b2d
commit 81becaa685

View file

@ -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 ?