From 9960843c131f9c392e0062c1c22d507c0d563f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Molinari?= Date: Wed, 11 Feb 2026 06:54:06 +0100 Subject: [PATCH] pan/crc: allow setting a NULL pointer to the CRC validity state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc Molinari --- src/panfrost/lib/pan_desc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/lib/pan_desc.c b/src/panfrost/lib/pan_desc.c index 23c7ee8ba1c..3c82d184e97 100644 --- a/src/panfrost/lib/pan_desc.c +++ b/src/panfrost/lib/pan_desc.c @@ -1022,7 +1022,8 @@ pan_fb_color_attachment_should_crc(const struct pan_fb_color_attachment *rt, uint64_t mod; struct pan_image_block_size renderblk_sz; - if (!rt->view || rt->discard || !pan_image_view_has_crc(rt->view)) + if (!rt->view || rt->discard || !rt->crc_valid || + !pan_image_view_has_crc(rt->view)) return false; mod = pan_image_view_get_first_plane(rt->view).image->props.modifier;