Stray (PPSA02101): a pixel shader at 0x20eec20000 reads an image descriptor as its buffer 0 and stops on "buffer descriptor uses an unsupported type" #5894
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 ThatsLeo on 2026-10-14T14:49:56Z.
After #5573, Stray gets into its opening cinematic and then stops on
@oneandonlydean mentioned this stop in #5099 as a separate issue; this is it with the descriptor.
Setup: Fedora 44, Intel Arc (Meteor Lake iGPU, Mesa 26.2.3 ANV), Stray PPSA02101 EU. Getting this far on this iGPU needs more than
main:main66f89476with #5405 (plus a local change that lets its spanned waves run without a required subgroup size), #5181, and smaller GPU caches for an integrated GPU (the staging pool from #5893, the storage image cache cut locally). The stop is in descriptor materialization, which none of those touch, and it happened in each of the 3 runs that stayed in the cinematic long enough, between 490 and 710 s.What is read. With a print added at the throw in
ResourceMaterializer.cpp(materializeTables):Word 3 is
0xa1b00fac. Its top bits give buffer type 2, but as a T# word 3 they read as an image type, and words 0-1 (0x20722c00,0xc3800000) look like an image's base address and format. So the shader's first buffer slot holds what is most likely an image descriptor.The shader address. The line just before is
and 17,000 lines earlier the same address was a texture:
I haven't established which is the case: the title loading a pixel shader where it had a texture (streaming would do that), or the draw's program address pointing at memory that no longer holds that program, as with the fused programs #5573 fixed. I could not dump the request: the throw comes after
PrepareShaderWithDiagnostics, soAPS5_DUMP_SHADERSdoes not catch it. A line naming the shader and the descriptor at that throw would make the next report shorter.AI-assisted: yes.
Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-14T15:03:38Z.
#5897 adds the line you asked for. A draw refused here now reads
and with
APS5_DUMP_SHADERS=1the stage's request is dumped and its path goes in the same prefix, so the case can be replayed without a local print. It does not change which descriptors are refused. #5879 (PPSA02100) stops on the same throw, so a run of either with that PR should show whether the address is a stale program or a real pixel shader that reads a T# as its buffer 0.Imported from boykopovar/AnyPS5. Originally posted by nikowolf123 on 2026-10-14T17:13:21Z.
@ThatsLeo, on the two cases you list. The
ShaderRegistryline is printed only for a program that the registry holds with a header (ShaderRegistry.cpp#L450-L453), and such a draw compiles the copy of the code taken at registration, not the bytes now at the address (#L395-L410). So the failing pixel shader is a program the title registered at0x20eec20000; the texture's bytes were not compiled. A run withAPS5_TRACE_SHADER_REGS=alltells your two cases apart: it prints a[shader] 0x<address> type ...line for each new registration (#L1416-L1429). A0x20eec20000registration after the texture line means the title put a shader there (your first case). If it only comes before, the registry still holds a program whose memory was reused (your second).There is a third case: a real pixel program that this draw should not run at all. #5631 by @moong15 (head
75083acb3) handles that one:CB_TARGET_MASK,CB_SHADER_MASKandDB_SHADER_CONTROLbut leave the previous pixel program bound andSPI_SHADER_Z_FORMATnon-zero.mainskips the pixel stage only when Z_FORMAT is 0 (State.cpp#L1404-L1415). Otherwise it reads the program's resources from user data written for another program. #5631 drops that condition, and such a draw gets the null pixel program.mainstopped at presentation on this same message in 2 of 6 runs and the PR in 0 of 6 (PR body); the PR notes this link is inferred, not traced to a draw.Could you add #5631 to your stack? It is one commit, and by
git merge-treeit cherry-picks without conflicts onto66f89476+ #5405 + #5181 + #5893 (without your local changes, which I can't see). #5897's three commits cherry-pick cleanly on top. If runs then stay in the cinematic past the 490 to 710 s where it stopped before, that points at this state. If it still stops, #5897's message names the shader and the V#, and context registers0x8e,0x8f,0x203and0x2dcat that draw (what #5631's check reads) would show why it was not skipped.AI-assisted: written with Claude Code; I checked when
ReportPreparedAtUseprints that line, whatRegisteredProgramreturns, whenAPS5_TRACE_SHADER_REGSprints and that registry entries are only replaced by a new registration, #5631's predicate change againstPixelProgramSkippedonmaine34c47921, and the Stellar Blade runs in #5631's body and gist. I rangit merge-treeto cherry-pick #5631 and then #5897's commits onto66f89476+ #5405 + #5181 + #5893. I did not run Stray or build these PRs.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T20:29:47Z.
Same stop as #5879 (Stray, the other region): an image descriptor read through a buffer slot of a pixel shader. Closing as a duplicate to keep the data in one place; your V# words and setup are linked from there.