diff --git a/src/dawn_native/metal/CommandBufferMTL.mm b/src/dawn_native/metal/CommandBufferMTL.mm index eb9892b6af..cacefa03d5 100644 --- a/src/dawn_native/metal/CommandBufferMTL.mm +++ b/src/dawn_native/metal/CommandBufferMTL.mm @@ -933,8 +933,7 @@ namespace dawn_native { namespace metal { if (@available(macos 10.15, iOS 14.0, *)) { [commandContext->EnsureBlit() resolveCounters:querySet->GetCounterSampleBuffer() - inRange:NSMakeRange(cmd->firstQuery, - cmd->firstQuery + cmd->queryCount) + inRange:NSMakeRange(cmd->firstQuery, cmd->queryCount) destinationBuffer:destination->GetMTLBuffer() destinationOffset:NSUInteger(cmd->destinationOffset)]; } else {