Disable timestamp query extension on Metal

Currently it's not clear how to convert timestamps to nanoseconds on
Metal, disable timestamp query extension on Metal until we know how to
do that. WebGPU issue: https://github.com/gpuweb/gpuweb/issues/1325

Bug: dawn:434
Change-Id: If63bd5fe9dccc1fff16a42cddf63e9d8265e65c5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37020
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Hao Li 2021-01-08 22:56:05 +00:00 committed by Commit Bot service account
parent c4efeef833
commit c9a22bcb93
1 changed files with 4 additions and 1 deletions

View File

@ -221,7 +221,10 @@ namespace dawn_native { namespace metal {
if ([*mDevice supportsFamily:MTLGPUFamilyMac2] ||
[*mDevice supportsFamily:MTLGPUFamilyApple5]) {
mSupportedExtensions.EnableExtension(Extension::PipelineStatisticsQuery);
mSupportedExtensions.EnableExtension(Extension::TimestampQuery);
// TODO(hao.x.li@intel.com): Not enable timestamp query here becuase it's not
// clear how to convert timestamps to nanoseconds on Metal.
// See https://github.com/gpuweb/gpuweb/issues/1325
}
}