Capture: Fix Texture Expectations EXPECT_TEXTURE_EQ expects expected to be one element per texel. Bug: 451338754 Change-Id: I6a6a6964855a586d2804541f448386202c806bb6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/277035 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Gregg Tavares <gman@chromium.org>
diff --git a/src/dawn/tests/white_box/CaptureAndReplayTests.cpp b/src/dawn/tests/white_box/CaptureAndReplayTests.cpp index 9232a0d..e0db755 100644 --- a/src/dawn/tests/white_box/CaptureAndReplayTests.cpp +++ b/src/dawn/tests/white_box/CaptureAndReplayTests.cpp
@@ -705,7 +705,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "dstTexture", {1}, expected); } @@ -759,7 +759,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "dstTexture", {1}, expected); } @@ -1038,7 +1038,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "myTexture", {1}, expected); } @@ -1102,7 +1102,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "dstTexture", {1}, expected); } @@ -1166,7 +1166,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "dstTexture", {1}, expected); } @@ -1297,7 +1297,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "myTexture", {1}, expected); } @@ -1465,7 +1465,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "dstTexture", {1}, expected); } @@ -1710,7 +1710,7 @@ auto capture = recorder.Finish(); auto replay = capture.Replay(device); - uint8_t expected[] = {0x11, 0x22, 0x33, 0x44}; + utils::RGBA8 expected[] = {{0x11, 0x22, 0x33, 0x44}}; ExpectTextureEQ(replay.get(), "dstTexture", {1}, expected); }