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.
This commit is contained in:
parent
7fb064fdee
commit
eb06c9dd5f
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user