Skip to content

Commit ea9484d

Browse files
committed
GPU Metal: commit the memory clear through CommitStream
The GPUMemClean16 blit committed its command buffer directly, so the stream kept the committed buffer as its open one, and the next encoder on that stream aborted with "failed assertion _status < MTLCommandBufferStatusCommitted". The clear was also never waited for.
1 parent b924848 commit ea9484d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎GPU/GPUTracking/Base/metal/GPUReconstructionMetalKernelsSpecialize.inc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ inline void GPUReconstructionMetal::runKernelBackend<GPUMemClean16, 0>(const krn
2323
[blit fillBuffer:mInternals->mem_gpu range:NSMakeRange(offset, length) value:0];
2424
[blit endEncoding];
2525

26-
[cb commit];
26+
CommitStream(_xyz.x.stream);
2727
}

0 commit comments

Comments
 (0)