diff --git a/source/blender/gpu/metal/mtl_shader.mm b/source/blender/gpu/metal/mtl_shader.mm index 94c3ef22a5d..b96de86da64 100644 --- a/source/blender/gpu/metal/mtl_shader.mm +++ b/source/blender/gpu/metal/mtl_shader.mm @@ -1390,9 +1390,15 @@ bool MTLShader::bake_compute_pipeline_state(MTLContext *ctx) } /* Compile PSO. */ + MTLComputePipelineDescriptor *desc = [[MTLComputePipelineDescriptor alloc] init]; + desc.maxTotalThreadsPerThreadgroup = 1024; + desc.computeFunction = compute_function; + id pso = [ctx->device - newComputePipelineStateWithFunction:compute_function - error:&error]; + newComputePipelineStateWithDescriptor:desc + options:MTLPipelineOptionNone + reflection:nullptr + error:&error]; if (error) { NSLog(@"Failed to create PSO for compute shader: %s error %@\n", this->name, error);