Draw with no pixel program fails: "prepared shader artifact is missing for the requested static ABI" (null pixel program) #1901
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 fisherjoey on 2026-10-08T23:11:04Z.
Stray (PPSA02100 v1.05, Unreal Engine 4) gets to its window and then aborts before its first frame:
Setup: Linux (Nobara 44, kernel 7.2), RTX 5070 Ti, NVIDIA 595.91.07. Base is
main1be6f9f1+ #861 + #1836 + #1893.The address is not a guest shader. It is the driver's own
NullPixelCode(libSceAgcDriver.prx+ 0x715900). The null pixel program is prepared once, with 0 user SGPRs and wave64. When a draw has no pixel program,DrawDecodegives the null program the queue's currentSPI_SHADER_PGM_RSRC2_PSuser SGPR count andSPI_PS_IN_CONTROLwave bit. Those values are left over from the last pixel shader the title bound (4 user SGPRs here). The prepared shader key then never matches. Guest pixel shaders get their per-draw variant throughResolveShaderAbi, but nothing does that for the null program.Fix: when a fragment request for the null pixel program misses, prepare it at the draw and cache the result in its entries. Unregistered compute shaders are already handled this way. The PR has a test that fails on
mainand passes with the fix. PR: #____AI-assisted: yes