From: scygan Date: Thu, 25 Feb 2016 13:32:57 +0000 (+0100) Subject: dEQP-VK.api.info.image_format_properties: properly calculate mip pyramid size. X-Git-Tag: upstream/0.1.0~438^2~333^2~17^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e71fa0ba1a518d22cd63790b8af83ff4a9c8ede;p=platform%2Fupstream%2FVK-GL-CTS.git dEQP-VK.api.info.image_format_properties: properly calculate mip pyramid size. It should be log_2(size) + 1, not log_2(size). --- 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;