Add missed level value to textureLoad

Caught by the bots running SwiftShader

BUG=tint:516

Change-Id: I4e93c2f73cf48242b49c8aea1f5f29a21ac6b8e7
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/43600
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Ben Clayton <bclayton@google.com>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Ryan Harrison 2021-03-02 17:53:39 +00:00 committed by Commit Bot service account
parent 29f0bd7e6a
commit b9eec93172
1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ class CopyTextureForBrowserTests : public DawnTest {
srcTexCoord.y = size.y - dstTexCoord.y - 1; srcTexCoord.y = size.y - dstTexCoord.y - 1;
} }
var srcColor : vec4<f32> = textureLoad(src, srcTexCoord); var srcColor : vec4<f32> = textureLoad(src, srcTexCoord, 0);
var dstColor : vec4<f32> = textureLoad(dst, dstTexCoord); var dstColor : vec4<f32> = textureLoad(dst, dstTexCoord, 0);
var success : bool = all(srcColor == dstColor); var success : bool = all(srcColor == dstColor);
var outputIndex : u32 = GlobalInvocationID.y * size.x + GlobalInvocationID.x; var outputIndex : u32 = GlobalInvocationID.y * size.x + GlobalInvocationID.x;