From eb06c9dd5fea6d67481ca8089d02078d7138c013 Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Wed, 5 Sep 2018 13:51:05 -0500 Subject: [PATCH] vkCmdFillBuffer: Use the older method to dispatch the compute kernel. We're not even running more than one thread, let alone taking advantage of the new method's automatic threadgroup sizing. --- MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm b/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm index b54fc064..68f8759c 100644 --- a/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm +++ b/MoltenVK/MoltenVK/Commands/MVKCmdTransfer.mm @@ -1012,7 +1012,7 @@ void MVKCmdFillBuffer::encode(MVKCommandEncoder* cmdEncoder) { [mtlComputeEnc setComputePipelineState: cmdEncoder->getCommandEncodingPool()->getCmdFillBufferMTLComputePipelineState()]; [mtlComputeEnc setBuffer: dstMTLBuff offset: dstMTLBuffOffset atIndex: 0]; [mtlComputeEnc setBytes: &fillInfo length: sizeof(fillInfo) atIndex: 1]; - [mtlComputeEnc dispatchThreads: MTLSizeMake(1, 1, 1) threadsPerThreadgroup: MTLSizeMake(1, 1, 1)]; + [mtlComputeEnc dispatchThreadgroups: MTLSizeMake(1, 1, 1) threadsPerThreadgroup: MTLSizeMake(1, 1, 1)]; [mtlComputeEnc popDebugGroup]; }