fix(agc): report sampler device limits #7003
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7003"
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 MarcZX10 on 2026-10-17T04:00:14Z.
What
Improves the sampler-limit rejection path with both the requested sampler count and the device's numeric limit. The per-stage and descriptor-set checks now produce diagnostic text such as
shader sampler descriptors exceed per-stage limits: required 17, device limit 16. Adds mock coverage for 17 sampler descriptors against a per-stage limit of 16.This implements the diagnostic option from #7000; Vulkan's reported physical-device limit remains enforced.
Tested
Linux x86-64, GCC 12.2, Release.
agc_driver_graphics_testsbuilt successfully after a temporary one-token workaround for an unrelated dependent-template parse error in unchangedSrtDescriptorEvaluation.cpp(also covered by #6306/#6738); that source was restored before committing. CTest startedagc_driver_graphicsbut aborted before assertions because this Xeon E5-1620 v2 lacks required host CPU features.python3 tools/check_conventions.py --base upstream/main --head HEADandgit diff --checkpassed. No GPU test run.Checklist
main; no other open PR implements the same diagnosticImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T04:15:46Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppL1515, L1518Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T04:16:34Z.
I manually checked the overlap with #6647. There is no duplicate feature: this PR adds required/limit diagnostics for sampler overflows, while #6647 selects update-after-bind limits for image and sampler tables. The shared validation hunk will need a combined resolution that keeps both the selected limit and the diagnostic text; this PR does not depend on #6647.