adjust the stride rather than the format
authorJeff Bolz <jbolz@nvidia.com>
Mon, 14 Dec 2015 23:57:44 +0000 (23:57 +0000)
committerJeff Bolz <jbolz@nvidia.com>
Mon, 14 Dec 2015 23:57:44 +0000 (23:57 +0000)
external/vulkancts/modules/vulkan/vktRenderPassTests.cpp

index 8d226b9..b72fe1d 100644 (file)
@@ -3278,7 +3278,8 @@ bool logAndVerifyImages (TestLog&                                                                                 log,
                                VK_CHECK(vk.invalidateMappedMemoryRanges(device, 2u, ranges));
 
                                {
-                                       const ConstPixelBufferAccess    depthAccess             (format, targetSize.x(), targetSize.y(), 1, depthPtr);
+                                       const ConstPixelBufferAccess    depthAccess             (depthFormat, tcu::IVec3(targetSize.x(), targetSize.y(), 1),
+                                                                                                                                                                 tcu::IVec3(format.getPixelSize(), format.getPixelSize() * targetSize.x(), 0), depthPtr);
                                        const ConstPixelBufferAccess    stencilAccess   (stencilFormat, targetSize.x(), targetSize.y(), 1, stencilPtr);
                                        tcu::TextureLevel                               errorImage              (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), targetSize.x(), targetSize.y());