MoltenVK: shaders with more than 16 samplers per stage still fail at the device limit check (follow-up to #6083) #7000

Closed
opened 2026-10-17 03:35:23 +00:00 by oneandonlydean · 2 comments
oneandonlydean commented 2026-10-17 03:35:23 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T03:35:23Z.


Follow-up to #6083, which raised the recompiler's limit to 32 sampler pairs per shader.

On MoltenVK, jotitadev measured maxPerStageDescriptorSamplers = 16 (and maxDescriptorSetSamplers = 80). A shader that uses 17 or more samplers still fails there, now at the driver's per-stage limit check (ShaderResources.cpp device-limit checks) instead of in the recompiler. That's the same title outcome as before #6083, so it's not a regression, but titles that need more than 16 samplers per stage still can't run on macOS.

A 16-sampler probe dispatches and samples correctly with and without #6083, and the MoltenVK suite shows the same 13 known failures as main.

What would close this: either a supported way to run shaders that need more than 16 samplers per stage on MoltenVK, or a clear diagnostic that names the device limit when a shader exceeds it.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5894438928 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7000). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T03:35:23Z. --- Follow-up to #6083, which raised the recompiler's limit to 32 sampler pairs per shader. On MoltenVK, jotitadev measured `maxPerStageDescriptorSamplers = 16` (and `maxDescriptorSetSamplers = 80`). A shader that uses 17 or more samplers still fails there, now at the driver's per-stage limit check (`ShaderResources.cpp` device-limit checks) instead of in the recompiler. That's the same title outcome as before #6083, so it's not a regression, but titles that need more than 16 samplers per stage still can't run on macOS. A 16-sampler probe dispatches and samples correctly with and without #6083, and the MoltenVK suite shows the same 13 known failures as main. What would close this: either a supported way to run shaders that need more than 16 samplers per stage on MoltenVK, or a clear diagnostic that names the device limit when a shader exceeds it.
MarcZX10 commented 2026-10-17 04:00:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T04:00:22Z.


I opened #7003 for the diagnostic option. It now reports both the required sampler count and device limit (for example, required 17, limit 16), with a mock regression for that case. The focused graphics target built locally; CTest aborts at the host CPU-feature guard before assertions on this Xeon, so runtime test execution is not verified here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6229373988 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7000#issuecomment-6229373988). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T04:00:22Z. --- I opened #7003 for the diagnostic option. It now reports both the required sampler count and device limit (for example, required 17, limit 16), with a mock regression for that case. The focused graphics target built locally; CTest aborts at the host CPU-feature guard before assertions on this Xeon, so runtime test execution is not verified here.
oneandonlydean commented 2026-10-17 07:22:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T07:22:40Z.


Closing: #7003 adds the diagnostic this issue asked for (sampler device limits are now reported). Running more than 16 samplers per stage on MoltenVK is still a separate gap; reopen if that becomes a target.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231164593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7000#issuecomment-6231164593). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T07:22:40Z. --- Closing: #7003 adds the diagnostic this issue asked for (sampler device limits are now reported). Running more than 16 samplers per stage on MoltenVK is still a separate gap; reopen if that becomes a target.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#7000
No description provided.