Fix maxMipMap calculation for images
authorMikel Garai <mikel.garai@arm.com>
Wed, 3 Jun 2020 12:28:34 +0000 (14:28 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 11 Jun 2020 15:08:05 +0000 (11:08 -0400)
commit3d81feb1d686a02a92ad0d1e8bd519869c2d700a
tree986c269d5b952135c0dcbb90d226a462c8c70d24
parent61f2eb1ba5163e696c68b13f4d141b2c8ecdd483
Fix maxMipMap calculation for images

This change uses the floor of the log2 instead of the ceiling as
described in vulkan specification for normal images.

Vulkan spec section: 11.3.3. Image Miplevel Sizing

Components: Vulkan

Affects:
dEQP-VK.api.info.image_format_properties.*

VK-GL-CTS Issue: 2407

Change-Id: Ic5c7afe5890ebf1b5cc00abd1534a4a4d0c9c3c9
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp