fix(agc): render into one slice of a 2D array color target #2626
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2626"
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-10T08:29:39Z.
Carrying @AlxcBTW's fix for #2578 while PR intake is paused. The change is theirs (from
AlxcBTW/AnyPS5:fix/agc-array-color-target-v2, 5bef2fde, the version rebased onto the 1D color target change).What
DecodeColorTileModeaccepts 2D color targets with anyMIP0_DEPTH. 1D targets still needMIP0_DEPTH0, and resource type 3 is still rejected.DecodeColorBufferalready moves a 2D target by the view's slice times the slice size. It now also rejects a view slice beyondMIP0_DEPTHwhen that field is nonzero. Surfaces withMIP0_DEPTH0 behave as before.Why
VITA5 (PPSA39410) and Homebrew UI Lab (PPSA99050) stop at
with
CB_COLOR_ATTRIB3 = 0x4dc6c001: a 2D color target withMIP0_DEPTH1, rendered through a single-slice view. radeonsi writes the last layer of the resource there for array targets (Mesasrc/gallium/drivers/radeonsi/si_state.c,src/amd/common/ac_descriptors.c), and Mesa-built homebrew does the same.Tested
d5c8e42d: Linux and macOS pass. The one Windows failure,agc_driver_prepared_shaders_deferred_undecodable, fails on everymainrun at the moment. The first version passed full CI onc72d5ce1.ColorTargetLayouttests:0x4dc6c001is accepted, 1D with a nonzeroMIP0_DEPTHand resource type 3 are still rejected.Graphicstests: slice 1 of a two-slice target moves the address by one slice, and slice 2 is rejected.tools/check_conventions.pypasses, and the branch merges cleanly with currentmain.Fixes #2578
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 adriadam10 on 2026-10-10T08:48:27Z.
Checked on the PR merged onto current
main: libSceAgcDriver build + ctest green (agc_driver_graphicspasses, and fails with the two source changes reverted); the new rows pin0x4dc6c001accepted, 1D with nonzeroMIP0_DEPTHand resource type 3 still rejected, slice 1 moves by one slice, slice 2 rejected. Not run here: VITA5 / UI Lab on a real title. Merging once CI is green.Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-10T09:12:00Z.
Title run for this change, since it wasn't run on a title above: Windows 11, RTX 5070 Laptop (616.92),
main05e884cawith #2625 and #2626 merged, plus #2627, AlxcBTW/AnyPS5#12 (#1413) and the titles' import PRs.[VD5] frames=600 mean=16.69ms max=27.43ms.AI-assisted: yes (Claude Code).