Avoid [MTLDevice sampleTimestamps] unless the extension is enabled
This callsite was missed in a previous CL: https://dawn-review.googlesource.com/c/dawn/+/59041 Bug: chromium:1226078 Change-Id: I3829dc16a8ec3c7b7274bc6057030bdade598ade Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/61584 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
3229c5b46c
commit
e02bb36a2a
|
@ -134,7 +134,7 @@ namespace dawn_native { namespace metal {
|
|||
|
||||
DAWN_TRY(mCommandContext.PrepareNextCommandBuffer(*mCommandQueue));
|
||||
|
||||
if (GetAdapter()->GetSupportedExtensions().IsEnabled(Extension::TimestampQuery)) {
|
||||
if (IsExtensionEnabled(Extension::TimestampQuery)) {
|
||||
// Make a best guess of timestamp period based on device vendor info, and converge it to
|
||||
// an accurate value by the following calculations.
|
||||
mTimestampPeriod =
|
||||
|
|
Loading…
Reference in New Issue