From 45810bfc9c551fdb3f25f184c9d7c50c51ae0e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis-Francis=20Ratt=C3=A9-Boulianne?= Date: Thu, 17 Oct 2024 16:37:09 -0400 Subject: [PATCH] panfrost: check the right discard property when selecting CRC target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/lib/pan_desc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/pan_desc.c b/src/panfrost/lib/pan_desc.c index 81b6580ecbb..a7bf1f23110 100644 --- a/src/panfrost/lib/pan_desc.c +++ b/src/panfrost/lib/pan_desc.c @@ -109,7 +109,7 @@ GENX(pan_select_crc_rt)(const struct pan_fb_info *fb, unsigned tile_size) int best_rt = -1; for (unsigned i = 0; i < fb->rt_count; i++) { - if (!fb->rts[i].view || fb->rts[0].discard || + if (!fb->rts[i].view || fb->rts[i].discard || !pan_image_view_has_crc(fb->rts[i].view)) continue;