Skip to content

Commit

Permalink
Stop GPU capture on device loss.
Browse files Browse the repository at this point in the history
  • Loading branch information
js6i committed Aug 9, 2024
1 parent 3b9e335 commit 07d7bfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MoltenVK/MoltenVK/GPUObjects/MVKQueue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@
reportError(vkErr, "MTLCommandBuffer \"%s\" execution failed (code %li): %s",
mtlCmdBuff.label ? mtlCmdBuff.label.UTF8String : "",
mtlCmdBuff.error.code, mtlCmdBuff.error.localizedDescription.UTF8String);
if (markDeviceLoss) { getDevice()->markLost(markPhysicalDeviceLoss); }
if (markDeviceLoss) {
getDevice()->stopAutoGPUCapture(MVK_CONFIG_AUTO_GPU_CAPTURE_SCOPE_DEVICE);
getDevice()->markLost(markPhysicalDeviceLoss);
}

#if MVK_XCODE_12
if (&MTLCommandBufferEncoderInfoErrorKey != nullptr) {
Expand Down

0 comments on commit 07d7bfb

Please sign in to comment.