From e9c69fe39aa775f5b2319ede8cc044da356d265e Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Thu, 31 Mar 2022 17:57:29 +0200 Subject: [PATCH] dzn: 3D array images don't exist Let's force maxArrayLayers to one in that case. Reviewed-by: Erik Faye-Lund Part-of: --- src/microsoft/vulkan/dzn_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/vulkan/dzn_device.cpp b/src/microsoft/vulkan/dzn_device.cpp index ac6446c4ca6..7de11969833 100644 --- a/src/microsoft/vulkan/dzn_device.cpp +++ b/src/microsoft/vulkan/dzn_device.cpp @@ -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;