fix(agc): pass the depth bounds test when both depth planes are absent #2179
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2179"
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-09T10:42:07Z.
What
#453 (
48ebf3195e, "skip depth and stencil tests whose plane is absent") renders depth and stencil tests without a depth target whenDB_Z_INFOandDB_STENCIL_INFOboth have FORMAT INVALID: with no plane, there is nothing to test, and every test passes.The depth bounds test (
DB_DEPTH_CONTROLbit 3) reads the same absent depth plane, but such a draw still threw:Depth bounds now follow the same rule when both planes are absent: no depth target, and no bounds test. The change is in
DecodeStateandDrawRejection,core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp.With an absent depth plane beside a present stencil plane, the bounds test still throws
depth bounds without a depth plane, as before.This is the same claim #453 makes for the depth and stencil tests. It also matches the Vulkan rule that the bounds test passes without a depth attachment. It is not checked on hardware.
Tested
maina8b032b236: ctest 495/495.tools/check_conventions.pypasses.agc_driver_graphics,stateTests:DB_DEPTH_CONTROL0x007007bb), and bounds alone (8), on two absent planes decode with no depth target and are not rejected. Onmainboth throw.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)Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:24:38Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), RTX 3060 Laptop (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
5fbe3998, merged ontomaind70b8998in one build with 33 other AGC/shader PRs that had no Windows run.agc_driver_graphics. None of them reported skipping a case.PATHsetup.No title was run.
🤖 Addressed by Claude Code