diff --git a/src/webgpu/api/operation/command_buffer/image_copy.spec.ts b/src/webgpu/api/operation/command_buffer/image_copy.spec.ts index 3dc889799bb2..ee6f5182950c 100644 --- a/src/webgpu/api/operation/command_buffer/image_copy.spec.ts +++ b/src/webgpu/api/operation/command_buffer/image_copy.spec.ts @@ -1088,20 +1088,19 @@ class ImageCopyTest extends TextureTestMixin(GPUTest) { // Check the valid data in outputStagingBuffer once per row. for (let y = 0; y < copyFromOutputTextureLayout.mipSize[1]; ++y) { - const rowOffset = expectedStencilTextureDataBytesPerRow * y; const dataStart = expectedStencilTextureDataOffset + expectedStencilTextureDataBytesPerRow * expectedStencilTextureDataRowsPerImage * stencilTextureLayer + - rowOffset; + expectedStencilTextureDataBytesPerRow * y; this.expectGPUBufferValuesEqual( outputStagingBuffer, expectedStencilTextureData.slice( dataStart, dataStart + copyFromOutputTextureLayout.mipSize[0] ), - rowOffset + copyFromOutputTextureLayout.bytesPerRow * y ); } }