Repository navigation
feat(agc): sample depth plane arrays from a later base slice - #1186
oneandonlydean merged 3 commits into
Conversation
665e63a to
e53b2d0
Compare
e53b2d0 to
fd0ddc6
Compare
|
A case for this from Demon's Souls (PPSA01341 v1.07) on Linux (Nobara 44, RTX 5070 Ti, 595.91.07). Since #1086 and #1346 merged, the title's shadow pass renders, and after NEW GAME a compute shader reads the 1024x1024 D32 shadow map as a one-slice 2D array. On Dimension 2 is |
|
@fisherjoey thanks, a shadow-map read from a later base slice after NEW GAME is exactly the case this is for. |
|
@MichonGoddijn231849 mrfelek's |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
|
Cherry-picked @mrfelek's |
|
Heads-up for the rebase: against current I merged this head locally on AI-assisted; the runs are from my machine. |
A T# reading a depth surface's planes as a 2D array whose BASE_ARRAY is past slice 0 views the plane copy from that slice (the copy holds slices 0 to LAST_ARRAY), instead of being refused. A 2D binding of such a plane array reads its base slice through a one-slice view. Resident Evil Village (PPSA01556: a D32 array read as R32F from slice 1) and Diablo II: Resurrected (PPSA03912: a D16 array read as R16_UINT from slice 1) stopped on the refusal. Rebased onto main from EagleBearerYS's adaptation to the current DepthPlaneCopy. Co-Authored-By: EagleBearerYS <75296019+EagleBearerYS@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
agc_driver_depth_plane_sampling's refusal case becomes base-slice cases: a D32 2D array from base slice 1 reads its slices 1 and 2, and through a 2D shader image slice 1; a D16 plane array read as R16_UINT from base slice 1 reads slice 1 (the integer path Diablo II takes). Co-Authored-By: EagleBearerYS <75296019+EagleBearerYS@users.noreply.github.com> Co-Authored-By: mrfelek <17274927+mrfelek@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A base slice past the last slice, a cube from a base slice and a 2D view with a base slice are refused by DepthSurfaceTexture. Each case fails when its check is removed.
|
Rebased onto main: only the debt file conflicted; kept your depth-plane copies bullet before main's SW_64KB_Z_X one. Full |
bda61af to
f8aa904
Compare
Met: tests for the base-slice path and the refusals, plus the debt line, are in.
…0a27 (#76) boykopovar/AnyPS5#1186, #5779, #5205, #5003 and #5216 are merged; the Game bring-up thread (discussion 5146) reports In game on main with two runs of about 40 presents per 10 s.
What
A T# that reads a depth surface's planes as a 2D array whose BASE_ARRAY is past slice 0 views the plane copy from that slice, instead of being refused (the copy holds slices 0 to LAST_ARRAY). A 2D binding of such a plane array reads its base slice through a one-slice view.
Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB, MinGW-w64 GCC 15.2.0.
gta-v/testingbranch (Performance mode, the prologue).main0214069 (2026-10-13):agc_driver_depth_plane_samplingpasses with its base-slice cases (a D32 2D array from base slice 1 through an array and a 2D image, and a D16 plane read asR16_UINTfrom base slice 1), which replacemain's refusal case. The wholeagc_*suite passes on Windows (483 tests).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