Only pass VkImageViewMinLodCreateInfoEXT when minLod is != 0.0f
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 8 Feb 2022 13:58:10 +0000 (14:58 +0100)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Thu, 17 Feb 2022 22:17:07 +0000 (22:17 +0000)
commitf37acc26a452000151963eafe07625d858a4f3f5
tree1d2785974e16014004ffbb316970da6683c35407
parent828c3fcbb780291801dfd9604740f9948f2a7d75
Only pass VkImageViewMinLodCreateInfoEXT when minLod is != 0.0f

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 <siglesias@igalia.com>
Change-Id: I09110ef2e6ebfb6f55c084eda85359ebf5cfa742
external/vulkancts/modules/vulkan/texture/vktTextureTestUtil.cpp