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:
parent
c4efeef833
commit
c9a22bcb93
|
@ -221,7 +221,10 @@ namespace dawn_native { namespace metal {
|
||||||
if ([*mDevice supportsFamily:MTLGPUFamilyMac2] ||
|
if ([*mDevice supportsFamily:MTLGPUFamilyMac2] ||
|
||||||
[*mDevice supportsFamily:MTLGPUFamilyApple5]) {
|
[*mDevice supportsFamily:MTLGPUFamilyApple5]) {
|
||||||
mSupportedExtensions.EnableExtension(Extension::PipelineStatisticsQuery);
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue