feat(agc): storage image access to depth planes through a 2D array view from a later slice #5779
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5779"
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 mrfelek on 2026-10-14T10:18:08Z.
What
A storage view of a depth plane that starts above slice 0 (a 2D array T# with BASE_ARRAY above 0) threw
storage image access to the depth planes of depth surface ... through a 2D array view of slices N-M is not implemented. #5003 added storage views of depth planes from slice 0 and still refuses these.LayeredDepthStoragealready spans slices 0..last, so the view only needs to know where it starts. The refusal is dropped, the first layer joins the object, and only the slices from the base slice to the last are copied in and out of the depth surfaces. The base slice is part of the cache key, so two views of the same memory from different base slices are separate images, as other views of the same plane already are. The technical-debt entry is updated.Tests:
agc_driver_depth_storage_dispatchnow stores through a view from base slice 2 and checks that the other slices stay untouched;agc_driver_depth_storageno longer expects the refusal. Both fail without the change.Tested
Ubuntu 26.10, GCC 15.3.0, RTX 3080 Ti (NVIDIA 615.71.09), Release, on main
c654b199b.agc_driver_depth_storageandagc_driver_depth_storage_dispatchpass, and fail with the source change reverted;agc_driver_depth_storage_reuse,depth_plane_sampling,depth_plane_guest_layers,depth_compare_copyanddepth_fast_clear_submitpass.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryAI-assisted; the runs are from my machine.
Imported from boykopovar/AnyPS5. Originally posted by mrfelek on 2026-10-14T10:56:46Z.
Check on today's
main: Diablo II: Resurrected (PPSA03912, 01.039.000), Linux, RTX 3080 Ti (NVIDIA 615.71.09),main3e577edacwith #1186 (head merged locally; one docs conflict indocs/dev/debt/libSceAgcDriver.md, none in code) and this PR on top. Offline > New Character reaches the Rogue Encampment with the character on screen (second attempt of three; the first two launches did not reach it: the game's known load-time crash on the first, alibSceHttpcrash after about 10 minutes in game on the second). Thestorage image access to depth/stencil surface ... slices=1-1error from before this PR does not appear.In game, measured on the third run: 39.1 presents per 10 s (windows 40, 39, 39, 39, 39, 39, 39). The depth tests pass on the combination (9 of 9
depthtests;agc_driver_depth_storageandagc_driver_depth_storage_dispatchfail with this PR's source change reverted).AI-assisted; the runs are from my machine.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T13:33:12Z.
Checked on Linux (AMD, RADV):
agc_driver_depth_storage,agc_driver_depth_storage_dispatchandagc_driver_depth_storage_reusepass, and the first two fail with the source change reverted. The firstLayer loop bound and the base slice in the cache key look right; the layer-pitch check still guards the remaining case. Merging once the full Build is green.