Track Command Encoder QuerySets

Even with validation off, the querysets need to be
tracked for proper synchronization.

There's no good way to test this AFAICT as not
syncrhonizing just means the value could be incorrect.

Bug: 464001949
Change-Id: Iba3d9b75ddd39a4e89c823f3be18d7cd6a6a6964
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/278855
Reviewed-by: Shrek Shao <shrekshao@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Gregg Tavares <gman@chromium.org>
diff --git a/src/dawn/native/CommandEncoder.cpp b/src/dawn/native/CommandEncoder.cpp
index 60c777c..74fd70f 100644
--- a/src/dawn/native/CommandEncoder.cpp
+++ b/src/dawn/native/CommandEncoder.cpp
@@ -1257,9 +1257,7 @@
 void CommandEncoder::TrackQueryAvailability(QuerySetBase* querySet, uint32_t queryIndex) {
     DAWN_ASSERT(querySet != nullptr);
 
-    if (GetDevice()->IsValidationEnabled()) {
-        TrackUsedQuerySet(querySet);
-    }
+    TrackUsedQuerySet(querySet);
 
     // Set the query at queryIndex to available for resolving in query set.
     querySet->SetQueryAvailability(queryIndex, true);