pan/mod: Protect against no usage flags for 64k

This doesn't happen now, but it will later.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40886>
This commit is contained in:
Daniel Stone 2026-05-14 14:21:02 +01:00 committed by Marge Bot
parent 0fb529053b
commit 4364f5352a

View file

@ -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 =