nvk: report maxMipLevels as 1
authorKarol Herbst <kherbst@redhat.com>
Thu, 9 Jun 2022 18:18:44 +0000 (20:18 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:53 +0000 (21:31 +0000)
the CTS uses that value in some places

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_physical_device.c

index 22c67e2..7ef5fa0 100644 (file)
@@ -432,7 +432,7 @@ nvk_GetPhysicalDeviceImageFormatProperties2(VkPhysicalDevice physicalDevice,
       else
          return VK_ERROR_FORMAT_NOT_SUPPORTED;
 
-      base_props->imageFormatProperties.maxMipLevels = 0;
+      base_props->imageFormatProperties.maxMipLevels = 1;
       base_props->imageFormatProperties.maxArrayLayers = 2048;
       base_props->imageFormatProperties.sampleCounts = 0;
       base_props->imageFormatProperties.maxResourceSize = 0xffffffff; // TODO proper value