From 6e71fa0ba1a518d22cd63790b8af83ff4a9c8ede Mon Sep 17 00:00:00 2001 From: scygan Date: Thu, 25 Feb 2016 14:32:57 +0100 Subject: [PATCH] dEQP-VK.api.info.image_format_properties: properly calculate mip pyramid size. It should be log_2(size) + 1, not log_2(size). --- external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp b/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp index 7a38d67..41d9eab 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp @@ -1347,7 +1347,7 @@ tcu::TestStatus imageFormatProperties (Context& context, ImageFormatPropertyCase curCreateFlags); const deUint32 fullMipPyramidSize = de::max(de::max(deLog2Ceil32(properties.maxExtent.width), deLog2Ceil32(properties.maxExtent.height)), - deLog2Ceil32(properties.maxExtent.depth)); + deLog2Ceil32(properties.maxExtent.depth)) + 1; log << TestLog::Message << properties << "\n" << TestLog::EndMessage; -- 2.7.4