fix(shader): accept signed less-than in runtime SRT values #3807
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3807"
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 reyani-dev on 2026-10-11T16:56:14Z.
What
#2072 taught the SRT evaluator (
SrtEvaluator.cpp) to computeSLessThan32, butIsRuntimeUniformOp(SrtInstructionPredicates.cpp) still leaves it out. So the runtime validator (SrtRuntimeValidator.cpp) rejects any descriptor dword computed through a signed comparison before the evaluator ever sees it.SLessThan32was the only op the evaluator handles that the validator neither lists nor handles itself. This adds it, the same way #2790 addedSMin32.Titles: EVO Player (PPSA99039), PS5VR (PPSA99177), Jelly5 (PPSA99505), Emby5 (PPSA99515) and Nuvio PS5 (PPSA99997) all stop here at their first draw, once #3496 gets them past
sceAgcCreatePrimState(where they stop onmaina11c8f7f):With this change on top of #3496:
AGC graphics: guest 2D texture descriptor has a nonzero depth or base array. That's a linear T# with its pitch in DEPTH; I have a separate branch for it and will open it after this one.Tested
Windows 11 (26200), RTX 4070, WinLibs GCC 15.2.0 r7, Release, on
maina11c8f7f:agc_shader_memory:verifySignedSrtComparisonnow also runs the validator on its threeSelectU32(SLessThan32(...))dwords. That check fails with the predicate change reverted (the runtime validator rejects a descriptor dword the evaluator computes) and passes with it.ctest -E "^agc_|video_out": 450/453. The 3 failures also fail onmainon Windows:windows_exceptions(#3411),guest_kernel_sys(#3510) andguest_filesystem(#3518).VK_LOADER_DRIVERS_DISABLE=*dzn*, #3255): 383/384. The failure,agc_driver_emulated_color_compare, also fails onmainwith NVIDIA (#3526).main+ #3496, with and without this change.tools/check_conventions.pyandtools/pr_overlap.py: clean.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 adriadam10 on 2026-10-11T22:05:40Z.
Checked the build and
agc_shader_memoryon Linux with the PR merged onto main. The new validator check fails without the predicate change (SLessThan32was the only op the evaluator computes that the validator neither lists nor handles), and passes with it; merging.