From 4364f5352ab5dba62604617df6fe883e2ab4e03c Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 14 May 2026 14:21:02 +0100 Subject: [PATCH] pan/mod: Protect against no usage flags for 64k This doesn't happen now, but it will later. Signed-off-by: Daniel Stone Part-of: --- src/panfrost/lib/pan_mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/lib/pan_mod.c b/src/panfrost/lib/pan_mod.c index a345036396c..7f212ead629 100644 --- a/src/panfrost/lib/pan_mod.c +++ b/src/panfrost/lib/pan_mod.c @@ -634,11 +634,11 @@ pan_mod_interleaved_64k_test_props(const struct pan_kmod_dev_props *dprops, return PAN_MOD_NOT_SUPPORTED; /* We don't implement tiling/detiling of this layout on host. */ - if (iusage->host_copy) + if (iusage && iusage->host_copy) return PAN_MOD_NOT_SUPPORTED; /* We don't respect wsi_row_pitch_B so this layout is not usable for WSI. */ - if (iusage->wsi) + if (iusage && iusage->wsi) return PAN_MOD_NOT_SUPPORTED; struct pan_image_block_size tile_extent_el =