dEQP-VK.api.info.image_format_properties: properly calculate mip pyramid size.
authorscygan <slawomir.cygan@gmail.com>
Thu, 25 Feb 2016 13:32:57 +0000 (14:32 +0100)
committerscygan <slawomir.cygan@gmail.com>
Thu, 25 Feb 2016 16:36:41 +0000 (17:36 +0100)
It should be log_2(size) + 1, not log_2(size).

external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp

index 7a38d67..41d9eab 100644 (file)
@@ -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;