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>
(cherry picked from commit 81becaa685)
This commit is contained in:
Alyssa Rosenzweig 2021-01-13 23:16:30 -05:00 committed by Dylan Baker
parent bea422f2f4
commit c7a7e64ffa
2 changed files with 2 additions and 2 deletions

View file

@ -814,7 +814,7 @@
"description": "pan/bi: Fix assertion",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "bef3fedc8145c4030342f7c8f5cfc24c9df82909"
},

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 ?