mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 23:48:18 +02:00
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:
parent
0fb529053b
commit
4364f5352a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue