feat(agc): pair sampler-table border samplers with their image numeric class #28321
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28321"
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 olegon85 on 2026-11-30T02:36:30Z.
What
Sampler table entries that clamp to border were rejected at build time because one
VkSamplercannot carry both numeric classes of border color, which also faulted every float pair going through the table. A sampler table entry now pairs dynamically: the first image paired with it assigns the class and the slot materializes as the matching float or integer border variant (direct S#s keep their statically decoded class), a pairing that disagrees faults that image entry, and a remembered table replays rebind the assigned variant. PPSA38500 (#27523) reaches the rejection six times per world load through one table S# (clamp mode 6 on U and V, transparent-black border type) shared by three fragment-stage pipelines; that border samples zero in both classes, so only the host's border-class match blocked these pairs.Tested
tools/check_conventions.py --base upstream/mainpasses locally with this body. NVIDIA GeForce RTX 4080, driver 595.99.02, Ubuntu 24.04:ctest -R agc_driver_image_tablepassed onmainand on this change withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer; both logs show the loader inserting the 1.4.369 layer and neither contains aVUID-message.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-30T02:47:22Z.
Review: COMMENTED
Actionable comments posted: 3
Architecture findings (1)
Advisory architecture findings (1)
628b9af9-120c-43fb-bce0-fe839980b065Reviewing files that changed from the base of the PR and between
06b3505cf7and633e9ed502.core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppdocs/dev/debt/changes/feat-agc-sampler-table-border-pairing.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T02:47:40Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
633e9ed502a7bd57587a060d1445d7950abc1879. I did not run commands or tests in this review; the test report in the PR description is author supplied.Results
Findings
Blocking
None found in the code read.
Non-blocking
None.
Not verified
ShaderResources.cppwas read through targeted ranges covering the changed pairing, table replay, and sampler table logic; the entire file was not read. The changed files read wereShaderResources.hpp,ShaderResources.cpp(targeted ranges), andtests/execution/ImageTable.cpp. The change notedocs/dev/debt/changes/feat-agc-sampler-table-border-pairing.mdwas not read. No files were excluded by the manifest beyondShaderResources.cpp's full text, which was too large for the review folder. Tests and the author's reported hardware environment were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T20:01:11Z.
Review: COMMENTED
The image-table
refusallambda changes each sampler slot as it checks it. If an image pairs successfully with the first sampler and fails the next pairing,bindrejects the image while the first sampler remains assigned to its numeric class. A later otherwise valid image of the other class can then fault because of the rejected image. Can all pairings be checked before applying any of the changes? The new integer checks read an in-range texel. An out-of-range case could also verify the actual integer border value.Source review at
633e9ed502. The head trial-merges ontod2e04ef9b3. Paired Vulkan execution is queued.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.