fix(agc): sample a cube array over depth surfaces through their depth planes #12207
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12207"
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 XairRrR on 2026-10-28T03:43:09Z.
What
A cube T# whose last array slice is 6n - 1 is a cube array of n cubes. When it lies over a depth surface, the depth plane path (
DepthSurfaceTexture) accepted one cube only (last array slice 0 or 5) and threwsampling the depth planes of depth surface ... is not implementedfor the rest. It now gathers all 6n slices into the 2D array copy, the layout the colour texture path already uses for cube arrays. The refusal message also names the last array slice, whether the view reads depth bits, and the copy format, since the slice count it printed for a cube was always 6.PPSA05684 (Uncharted: Legacy of Thieves Collection) samples a two-cube D32 shadow array this way (last array slice 11) right after Uncharted 4's orphanage chapter loads.
Tested
Arch Linux 7.2.11-zen, GCC 16.2.1, Ninja, Release, on
main3ca715ee15:agc_driver_depth_plane_guest_layersgainsRunCubeArrayGather: two cubes of depth surfaces over 12 slices, sampled through one cube array T#, each slice read back. WithDepthSurface.cppfrommainit fails with the title's error (... dimension 3, 6 slices, levels 0-0, base slice 0 is not implemented).ctest -j8(this branch together with my five other branches of today, on the samemain): 2619 of 2620 pass;agc_driver_mesh_barycentric_emulationfails the same way onmainon this GPU (the pixel shader did not emulate barycentrics).tools/check_conventions.py --base origin/mainpasses, with onedebt-lengthwarning on the depth plane copies entry this edits (already 2005 characters onmain).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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T04:24:30Z.
Review: CHANGES_REQUESTED
The inclusive
LAST_ARRAYcheck accepts only cube face counts divisible by six, and the new fixture covers gathering 12 slices plus rejecting an 8-slice cube. I found no separate defect by static inspection. This branch is 60 commits behind currentmain; please rebase and rerunagc_driver_depth_plane_guest_layerson current main and the rebased change. As an AGC change, also provide the repository-required paired validation-layer run and confirm the rebased change adds noVUID-errors.