MoltenVK: shaders with more than 16 samplers per stage still fail at the device limit check (follow-up to #6083) #7000
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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(andmaxDescriptorSetSamplers = 80). A shader that uses 17 or more samplers still fails there, now at the driver's per-stage limit check (ShaderResources.cppdevice-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.
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.
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.