From 7991cc76d6443bc94b0bed8a596f4ac2bf3d1c2d Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Tue, 24 Oct 2023 11:08:07 -0700 Subject: [PATCH] Fix a minor issue introduced in previous stencil test fix (#3086) --- src/webgpu/api/operation/command_buffer/image_copy.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ); } }