fix(agc): accept a table border colour when no axis uses a border mode #941
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/941"
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 ThisIsAkill on 2026-10-06T18:50:05Z.
What
Refs #665.
A sampler descriptor with
BORDER_COLOR_TYPE3 names an entry of the border colour table. That entry can only be read through an axis that addresses the border, meaning clamp modes 4 to 7 (half-border and border, mirrored or not).DecodeSamplerResourcethrew for every table border colour, so it also stopped samplers that never read one.With this change it throws only when an axis uses one of the border modes. Otherwise it creates the sampler with a fixed Vulkan border colour, which no axis samples. The colour compare emulation already applies the same rule (
ResourceMaterializer.cpp, a border colour table with a border mode throws).The border colour table itself is still not implemented, and a table border with a border mode still throws, so #665 stays open.
Tested
Linux, NVIDIA RTX 3070, PPSA21567.
The sampler. The S# that stopped Armadillo Challenge 2 (compute shader
0x5005ae200, the same words in 2 of 2 earlier runs) is00007092 00fff000 05000000 c0000000. It has CLAMP_X/Y/Z = 2 (clamp to the last texel), BORDER_COLOR_TYPE 3 and BORDER_COLOR_PTR 0, so no axis uses a border mode. Decoded on #665.The game. With this change on
oneandonlydean/astrobot6703b781(with-Bsymboliclibc and a local scripted pad, virtual display), Armadillo Challenge 2 runs the full 300 s test into gameplay instead of stopping at the throw. A local log showed exactly this one table-border sampler being accepted.Unit test (
agc_driver_graphics_tests). It covers:Non-table border types are unchanged. Two broken versions of the check (border modes starting at 6, and the check removed) both fail it.
Full
cteston this branch (default build): 359 of 359.Limits:
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by ThisIsAkill on 2026-10-06T23:41:12Z.
Update on the limits above: Armadillo Challenge 1 does reach the same sampler. In a second run with this change, it decoded and accepted
00007092 00fff000 05000000 c0000000, the same words as Armadillo Challenge 2, and ran the full 300 s test. So this change covers both Armadillo challenges on PPSA21567, one run each.