Mesa (master): pan/bi: Fix assertion

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jan 15 22:04:05 UTC 2021


Module: Mesa
Branch: master
Commit: 81becaa685a71778e16ed0cc0c510186d5e682f5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=81becaa685a71778e16ed0cc0c510186d5e682f5

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Wed Jan 13 23:16:30 2021 -0500

pan/bi: Fix assertion

Fixes: bef3fedc814 ("pan/bi: Lower 8bit fragment outputs to 16bit")
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reported-by: Coverity
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8489>

---

 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 ?



More information about the mesa-commit mailing list