fix(shader): drop vector stores through TYPE 2/3 and FORMAT 0 buffer V#s as measured #10827
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10827"
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 cgrd on 2026-10-25T03:14:10Z.
What
A buffer V# with TYPE (word 3 bits 30-31) not 0 throws
buffer descriptor uses an unsupported typefor any access. Puyo Puyo Tetris 2's fill kernel stores through an image T# left in its buffer slot (02100b00 c3c00000 010dc1df 91b00fac, TYPE 2, FORMAT 0), so it stops right after the window opens (#3709).Measured on a PS5 (CFI-1115B, fw 12.20) with a native test app, one TYPE 0 control per launch:
buffer_store_dwordandbuffer_store_format_xwrite nothing and don't fault, also with that exact V# and its unmapped base.Now a buffer a PS5 shader only stores to through TYPE 2/3, and vector accesses through TYPE 0 FORMAT 0, bind as a null V#. TYPE 1, TYPE 2/3 loads and atomics,
tbuffer_*, scalar loads, FORMAT above 77, GCN shaders and run-time-loaded V#s still throw (debt entry inshader.md). For #6412/#7689: those loads don't fault on the console.Tested
Linux, RX 9070 XT.
main52a8bed576vs this PR 052f7aa4cb.The existing 4 tests pass on
mainand here, with the layer loaded in both (7 insertions each) and 0 VUIDs. The newDisabledDescriptorscase passes here and fails onmainwithbuffer specialization has an unsupported format.Puyo Puyo Tetris 2 (PPSA01937):
mainstops at the V# above; this PR gets past it tosceRemoteplayInitialize: invalid argument(null heap, separate PR). With that fix too it boots, reaches the title at 10 s and plays a Solo Versus match at 59.9 FPS.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)sceRemoteplayInitializenull heap fix)🤖 Generated with Claude Code
https://claude.ai/code/session_01XhaLK5vSDdSUHwgXZHWpcR
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T03:16:40Z.
Review: CHANGES_REQUESTED
I reviewed exact head
89ec4ebcac6df61492d2b1058d7b5c96761ca199and the descriptor regression. The PS5 evidence for rawbuffer_store_dwordandbuffer_store_format_xis useful, but the new predicate applies more broadly than those measured operations.disabledBufferDescriptor()accepts every TYPE 2/3 descriptor with!buffer.readand any format up throughFormat32_32_32_32Float.disabledBufferAccesses()rules out typed, scalar, atomic and aliased accesses, but it does not constrain the remaining store width or format. As written, an otherwise-untyped vector store through an unmeasured multi-component format is also converted to a null descriptor. The PR's debt entry says multi-dword stores are assumed to behave like the one-dword cases, so those paths are explicitly not measured.Please either restrict nulling to the exact access forms covered by the console measurements and keep the unmeasured vector forms throwing, or add console-derived evidence and regression cases for the broader formats/widths this predicate disables. The current Linux/Vulkan validation and red/green title test support the reported case, but do not cover those other store forms.
Pull request closed