From 4c4332b848a347ea0827d7c2e6ca855805cc09bd Mon Sep 17 00:00:00 2001 From: Michael Barriault Date: Mon, 15 Apr 2019 17:58:26 +0100 Subject: [PATCH] Fix zero local threadgroup size in indirect rendering. --- MoltenVK/MoltenVK/Commands/MVKCmdDraw.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MoltenVK/MoltenVK/Commands/MVKCmdDraw.mm b/MoltenVK/MoltenVK/Commands/MVKCmdDraw.mm index 403e3714..83e5e004 100644 --- a/MoltenVK/MoltenVK/Commands/MVKCmdDraw.mm +++ b/MoltenVK/MoltenVK/Commands/MVKCmdDraw.mm @@ -601,7 +601,7 @@ void MVKCmdDrawIndirect::encode(MVKCommandEncoder* cmdEncoder) { sizeof(_drawCount), 5); [mtlTessCtlEncoder dispatchThreadgroups: MTLSizeMake(mvkCeilingDivide(_drawCount, mtlConvertState.threadExecutionWidth), 1, 1) - threadsPerThreadgroup: MTLSizeMake(mtlConvertState.threadExecutionWidth, 0, 0)]; + threadsPerThreadgroup: MTLSizeMake(mtlConvertState.threadExecutionWidth, 1, 1)]; } cmdEncoder->finalizeDrawState(stage); // Ensure all updated state has been submitted to Metal