From 8a15a9caef89d20a74d7bf054cc28ecb71062eff Mon Sep 17 00:00:00 2001 From: Inner Daemons <85136135+inner-daemons@users.noreply.github.com> Date: Fri, 14 Aug 2026 04:31:11 -0500 Subject: [PATCH] Fix max_task_workgroup_count limit checking for Apple2 instead of Apple7 (#10065) --- CHANGELOG.md | 1 + wgpu-hal/src/metal/adapter.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cd8a2ae6..ab801010f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ Bottom level categories: #### Metal - Fix Naga's Metal backend crashing when a storage texture was used as a function argument. By @ErichDonGubler in [#9867](https://github.com/gfx-rs/wgpu/pull/9867). +- Fix `max_task_workgroup_count` being misreported on pre-Apple7 devices. By @inner-daemons in [#10065](https://github.com/gfx-rs/wgpu/pull/10065). #### GLES diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index b3ff09d77..c455e6923 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -1134,7 +1134,7 @@ impl super::CapabilitiesQuery { // https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf#page=4 mesh_shaders, max_task_workgroup_count: if mesh_shaders - && (metal4 || device.supportsFamily(MTLGPUFamily::Apple2)) + && (metal4 || device.supportsFamily(MTLGPUFamily::Apple7)) { u32::MAX } else if mesh_shaders {