Skip to content

Commit

Permalink
WebGPU: Fix timestamp quantization with --enable-webgpu-developer-fea…
Browse files Browse the repository at this point in the history
…tures

Also need to disable timestamp quantization when the WebGPU developer features is enabled, otherwise it may always be enabled due to Dawn's default behavior(actually it's enabled by default in Dawn).

Bug: dawn:1800
Change-Id: Ifc44a31ef367378b53caf18b324bc8d372f5b39c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4977720
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Hao Li <hao.x.li@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1216688}
  • Loading branch information
haoxli authored and Chromium LUCI CQ committed Oct 29, 2023
1 parent a07eacf commit 30352cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpu/command_buffer/service/webgpu_decoder_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,8 @@ void WebGPUDecoderImpl::RequestDeviceImpl(
// --enable-webgpu-developer-features is used.
if (!enable_webgpu_developer_features_) {
require_device_enabled_toggles.push_back("timestamp_quantization");
} else {
require_device_disabled_toggles.push_back("timestamp_quantization");
}
// Disable the blob cache if we don't have an isolation key.
if (isolation_key_->empty()) {
Expand Down

0 comments on commit 30352cc

Please sign in to comment.