diff --git a/src/tests/end2end/CopyTests.cpp b/src/tests/end2end/CopyTests.cpp index c33ef20896..4456f6fe05 100644 --- a/src/tests/end2end/CopyTests.cpp +++ b/src/tests/end2end/CopyTests.cpp @@ -50,7 +50,7 @@ class CopyTests { const uint32_t byteOffsetPerSlice = layout.bytesPerImage * layer; for (uint32_t y = 0; y < layout.mipSize.height; ++y) { for (uint32_t x = 0; x < layout.mipSize.width * bytesPerTexelBlock; ++x) { - uint32_t i = x + y * layout.texelBlocksPerRow; + uint32_t i = x + y * layout.bytesPerRow; textureData[byteOffsetPerSlice + i] = static_cast((x + 1 + (layer + 1) * y) % 256); }