mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
dzn: 3D array images don't exist
Let's force maxArrayLayers to one in that case. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15698>
This commit is contained in:
parent
ad0ac592be
commit
e9c69fe39a
1 changed files with 1 additions and 1 deletions
|
|
@ -740,7 +740,7 @@ dzn_physical_device_get_image_format_properties(dzn_physical_device *pdev,
|
|||
else
|
||||
properties->imageFormatProperties.maxMipLevels = 1;
|
||||
|
||||
if (info->tiling == VK_IMAGE_TILING_OPTIMAL)
|
||||
if (info->tiling == VK_IMAGE_TILING_OPTIMAL && info->type != VK_IMAGE_TYPE_3D)
|
||||
properties->imageFormatProperties.maxArrayLayers = dzn_physical_device_get_max_array_layers();
|
||||
else
|
||||
properties->imageFormatProperties.maxArrayLayers = 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue