From 5bc95a5b494d72bba9b3baee321a1122c8df3bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20Iglesias=20Gons=C3=A1lvez?= Date: Tue, 8 Feb 2022 14:58:10 +0100 Subject: [PATCH] Only pass VkImageViewMinLodCreateInfoEXT when minLod is != 0.0f MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We avoid to passing VkImageViewMinLodCreateInfoEXT when creating the image view when the tests are actually not testing this. Therefore, the drivers that don't support this extension won't see errors when processing VkImageViewCreateInfo. Components: Vulkan VK-GL-CTS issue: 3094 Affected tests: dEQP-VK.texture.mipmap.* Signed-off-by: Samuel Iglesias Gonsálvez Change-Id: I09110ef2e6ebfb6f55c084eda85359ebf5cfa742 --- .../vulkancts/modules/vulkan/texture/vktTextureTestUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/texture/vktTextureTestUtil.cpp b/external/vulkancts/modules/vulkan/texture/vktTextureTestUtil.cpp index b9966ea020..07c7fd1aa7 100644 --- a/external/vulkancts/modules/vulkan/texture/vktTextureTestUtil.cpp +++ b/external/vulkancts/modules/vulkan/texture/vktTextureTestUtil.cpp @@ -475,7 +475,7 @@ void TextureBinding::updateTextureViewMipLevels (deUint32 baseLevel, deUint32 ma { vk::VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO, // VkStructureType sType; #ifndef CTS_USES_VULKANSC - imageViewMinLod >= 0.0f ? &imageViewMinLodCreateInfo : DE_NULL, // const void* pNext; + imageViewMinLod > 0.0f ? &imageViewMinLodCreateInfo : DE_NULL, // const void* pNext; #else DE_NULL, // const void* pNext; #endif // CTS_USES_VULKANSC