From e610c71f13231a124d14a2289de4dbc1b3eb722e Mon Sep 17 00:00:00 2001 From: Ishi Tatsuyuki Date: Sat, 12 Jun 2021 15:28:30 +0900 Subject: [PATCH] Adjust metal workgroup limits --- piet-gpu-hal/src/metal.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/piet-gpu-hal/src/metal.rs b/piet-gpu-hal/src/metal.rs index 69141c2..b8a1bf9 100644 --- a/piet-gpu-hal/src/metal.rs +++ b/piet-gpu-hal/src/metal.rs @@ -164,9 +164,12 @@ impl MtlInstance { has_descriptor_indexing: false, has_subgroups: false, subgroup_size: None, + // The workgroup limits are taken from the minimum of a desktop installation; + // we don't support iOS right now, but in case of testing on those devices it might + // need to change these (or just queried properly). workgroup_limits: WorkgroupLimits { - max_size: [512, 512, 512], - max_invocations: 512, + max_size: [1024, 1024, 64], + max_invocations: 1024, }, has_memory_model: false, use_staging_buffers,