From f731a81c7467d23215e0e8af1f6843fcbcfb5992 Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Fri, 4 Dec 2020 02:07:20 +0000 Subject: [PATCH] Fix DawnTest HasToggleEnabled referencing the wrong device It should reference the backendDevice as the |device| points to the wire client device when the wire is used. Bug: none Change-Id: Iac6399df96ea0226d8b9ba8f6196185e43c41adb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/34923 Reviewed-by: Austin Eng Commit-Queue: Austin Eng --- src/tests/DawnTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/DawnTest.cpp b/src/tests/DawnTest.cpp index 2e3532c782..4de63a54cb 100644 --- a/src/tests/DawnTest.cpp +++ b/src/tests/DawnTest.cpp @@ -709,7 +709,7 @@ bool DawnTestBase::IsAsan() const { } bool DawnTestBase::HasToggleEnabled(const char* toggle) const { - auto toggles = dawn_native::GetTogglesUsed(device.Get()); + auto toggles = dawn_native::GetTogglesUsed(backendDevice); return std::find_if(toggles.begin(), toggles.end(), [toggle](const char* name) { return strcmp(toggle, name) == 0; }) != toggles.end();