test(agc): cover padded D16 cube rows #5467
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5467"
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 Sanjaysrinivas on 2026-10-13T20:33:13Z.
What
Add a synthetic 320×320 D16 UNORM cube regression for padded depth-plane copies. Face 0 comes from a live depth surface; faces 1–5 come from guest tiled memory. Check rows 0, 1, 127 and 319 on all six faces, then overwrite guest face 3 and check the last row of every face again: 960 texel comparisons.
This is a test-only follow-up to alfalfa-star's #4722. The fixture requires a 1024-byte detiled row pitch and 393216-byte tiled face stride, and supplies the requested row through s13. It supplements the dependency's 128×128 integer-view case with normalized sampling and later-row coverage. No production implementation from #4722 is included here. Keep this draft until that dependency lands; this regression intentionally fails on current main.
Tested
Fresh Release build on Windows 11 Pro / MinGW-w64, SPIRV-Tools disabled, native NVIDIA Vulkan with Khronos validation and shader cache disabled. The new test on main
a0f5916a293067ca840e835e58a8a55a0b764b4bfails at the expected depth-plane geometry guard (0.895 s). Applying only the production patch from #4722 head68ab4fd53594adecf624cf7c5f2e5bc93fa1981fmakes the complete depth-plane sampling executable pass, including the 960 new comparisons and existing array/integer/refusal cases (0.865 s). Neither run skipped cases or reported Vulkan validation errors.The author patch was a local validation overlay and was restored before committing. The public branch contains only this regression. Linux/lavapipe and other hardware vendors have not been tested.
Checklist
main; no other open PR implements the same functions (this adds later-row and normalized-view coverage; related #4722 is the dependency).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T20:02:37Z.
Rebased onto main and fixed up the test, since main now has its own padded-cube cases in
DepthPlaneSampling.cpp:rowargument ofLoad(s13).LargeCubeOffsetso it doesn't overlapSmallCubeOffset, and raisedBlockBytesto 8 MiB: 6 faces of 393216 bytes at 0x200000 don't fit in 4 MiB (the test's ownRequirecaught it).s13change edits (Conventions: comments only for technical debt).Checked: scoped build and tests of libSceAgcDriver green (
agc_driver_tessellationsegfaults on unrelated PRs too); mutating the face-3 expectation makes the test fail at "face 3 row 319". Merging once the full Build is green.