shaders: build the graphics program index for device slot 57 (RT-SLOT57-NATIVE-GRAPHICS-PSO) #1592
Open
github-bot
wants to merge 2 commits from
github-bot/gh-1592 into main
AGit
pull from: github-bot/gh-1592
merge into: github:main
github:main
github:docs/animation-merge-remnants
github:docs/story-dedup-and-cli
github:docs/restofworld-merge-remnants
github:docs/gamedata-dedup-tables
github:docs/textures-bcpack-tables-and-cli
github:docs/exe-fail-fast-shims-sync
github:fix/address-guard-wraparound-parity
github:fix/cvt-f16-denorm-and-clamp
github:docs/pso-cache-scope-note
github:docs/viewer-readme
github:docs/textures-arrays-dds-preview
github:docs/conformance-readme-status
github:fix/docs-validators-fences-urls
github:claude/loop-total
github:claude/pops-collision-seed
github:claude/dstorage-hold-page-reads
github:claude/host-image-copy-switch
github:feat/gdk-lifecycle-window-hook
github:claude/d16s8-uav-nvidia-fallback
github:feat/mfplat-offline-shim
github:claude/gameinput-slow-reader
github:fix/rt-null-barrier-clear
github:claude/depth-resolve-sample-positions
github:integration/palmetto-parity
github:claude/valu-literal-sext
github:claude/slot74-pool-handle
github:claude/rgb9e5-uint-alias-view
github:claude/fssm-root-layout-tables
github:feat/gdk-speech-display-lifecycle
github:asset-audio-skip-current
github:qemmhd/old-9940-rectangle-quad-lists
github:feat/ws2-offline-shim
github:qemmhd/rt-d16-unorm-uav
github:feat/xs-device-stops-7-9
github:qemmhd/rt-depth-same-base-shapes
github:qemmhd/rt-lazy-attachment-variant
github:feat/acphal-xma2-decoder
github:asset-audio-skip
github:codex/coord-claim-check-20261124-7e48
github:feat/xs-frame-pacing-presentx
github:feat/xs-device-vm-options
github:old-pr/9844
github:old-pr/9978
github:old-pr/9815
github:old-pr/10057
github:old-pr/9874
github:old-pr/9965
github:old-pr/9863
github:old-pr/10068
github:old-pr/10066
github:old-pr/10067
github:old-pr/10007
github:old-pr/10061
github:old-pr/10065
github:old-pr/10059
github:old-pr/10063
github:old-pr/10055
github:old-pr/10062
github:old-pr/10042
github:old-pr/10041
github:old-pr/10049
github:old-pr/10047
github:old-pr/10046
github:old-pr/10045
github:old-pr/10056
github:old-pr/10043
github:old-pr/10036
github:old-pr/10034
github:old-pr/9984
github:old-pr/10052
github:old-pr/10038
github:old-pr/10033
github:old-pr/10028
github:old-pr/10050
github:old-pr/9891
github:old-pr/9889
github:old-pr/10051
github:old-pr/10019
github:old-pr/10027
github:old-pr/10029
github:old-pr/10031
github:old-pr/10026
github:old-pr/9941
github:old-pr/10030
github:old-pr/10040
github:old-pr/9990
github:old-pr/10021
github:old-pr/9962
github:old-pr/10022
github:old-pr/10020
github:old-pr/10015
github:old-pr/10025
github:old-pr/9886
github:old-pr/10048
github:old-pr/10014
github:old-pr/10011
github:old-pr/9861
github:old-pr/10010
github:old-pr/10008
github:old-pr/9860
github:old-pr/10006
github:old-pr/9920
github:old-pr/9995
github:old-pr/10000
github:old-pr/10016
github:old-pr/10004
github:old-pr/10023
github:old-pr/9982
github:old-pr/9981
github:old-pr/9983
github:old-pr/9970
github:old-pr/9969
github:old-pr/9968
github:old-pr/9971
github:old-pr/9972
github:old-pr/9942
github:old-pr/9963
github:old-pr/9960
github:old-pr/9964
github:old-pr/9985
github:old-pr/9973
github:old-pr/9862
github:old-pr/9953
github:old-pr/10017
github:old-pr/9952
github:old-pr/9955
github:old-pr/9946
github:old-pr/9954
github:old-pr/9938
github:old-pr/9956
github:old-pr/9856
github:old-pr/9947
github:old-pr/9924
github:old-pr/9961
github:old-pr/9927
github:old-pr/9979
github:old-pr/10032
github:old-pr/9926
github:old-pr/5237
github:old-pr/9951
github:old-pr/9931
github:old-pr/9902
github:old-pr/9921
github:old-pr/9994
github:old-pr/9775
github:old-pr/9768
github:old-pr/9905
github:old-pr/9936
github:old-pr/9901
github:old-pr/9904
github:old-pr/9906
github:old-pr/9988
github:old-pr/9908
github:old-pr/9909
github:old-pr/9911
github:old-pr/9912
github:old-pr/9913
github:old-pr/9887
github:old-pr/9916
github:old-pr/9919
github:old-pr/9925
github:old-pr/9933
github:old-pr/9935
github:old-pr/9918
github:old-pr/9879
github:old-pr/9880
github:old-pr/9881
github:old-pr/9996
github:old-pr/9876
github:old-pr/9892
github:old-pr/9899
github:old-pr/9915
github:old-pr/9914
github:old-pr/9872
github:old-pr/9869
github:old-pr/9866
github:old-pr/9819
github:old-pr/10012
github:old-pr/9857
github:old-pr/9893
github:old-pr/9897
github:old-pr/9928
github:old-pr/9868
github:old-pr/9917
github:old-pr/9940
github:old-pr/9873
github:old-pr/9816
github:old-pr/10009
github:old-pr/9900
github:old-pr/9966
github:old-pr/9859
github:old-pr/9843
github:old-pr/9991
github:old-pr/10058
github:old-pr/9883
github:old-pr/9838
github:old-pr/9835
github:old-pr/9959
github:old-pr/9895
github:old-pr/9837
github:old-pr/9858
github:old-pr/9865
github:old-pr/9864
github:old-pr/9840
github:old-pr/9820
github:old-pr/4669
github:old-pr/9848
github:old-pr/9850
github:old-pr/9810
github:old-pr/9799
github:old-pr/9853
github:old-pr/9875
github:old-pr/9831
github:old-pr/9796
github:old-pr/9801
github:old-pr/9813
github:old-pr/9794
github:old-pr/7417
github:old-pr/9781
github:old-pr/9806
github:old-pr/9958
github:old-pr/9809
github:old-pr/9791
github:old-pr/9792
github:old-pr/10053
github:old-pr/9784
github:old-pr/9789
github:old-pr/9849
github:old-pr/9846
github:old-pr/9773
github:old-pr/9785
github:old-pr/9803
github:old-pr/9826
github:old-pr/9839
github:old-pr/9922
github:old-pr/9948
github:old-pr/7189
github:old-pr/9957
github:old-pr/9823
github:old-pr/9807
github:old-pr/9851
github:old-pr/9774
github:old-pr/9830
github:old-pr/9836
github:old-pr/9822
github:old-pr/9783
github:old-pr/9833
github:old-pr/9890
github:old-pr/9770
github:old-pr/9769
github:old-pr/9772
github:old-pr/9787
github:old-pr/9852
github:old-pr/9834
github:old-pr/9845
github:old-pr/9871
github:old-pr/9771
github:old-pr/9776
github:old-pr/10005
github:old-pr/9949
github:old-pr/9923
github:old-pr/9805
github:old-pr/9829
github:old-pr/9790
github:old-pr/9827
github:old-pr/9929
github:old-pr/9855
github:old-pr/9934
github:old-pr/9907
github:old-pr/9910
github:old-pr/9779
github:old-pr/9780
github:old-pr/9885
github:old-pr/9882
github:old-pr/9877
github:old-pr/9998
github:old-pr/4251
github:old-pr/9987
github:old-pr/9989
github:old-pr/9950
github:old-pr/9777
github:old-pr/10044
github:old-pr/9884
github:old-pr/2906
github:old-pr/5076
github:old-pr/9937
github:old-pr/9986
github:old-pr/3014
github:old-pr/9943
github:old-pr/9939
github:old-pr/4682
github:old-pr/4765
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
bug
Something isn't working
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
question
Further information is requested
wontfix
This will not be worked on
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1592
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1592"
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?
@Rain156 on GitHub · 2026-11-25 05:27 UTC · original
Rain156:rain/slot57-graphics-library→main· +489 −168 · 18 files · 2 commits · openClaimed in the coordination issue as: RT-SLOT57-NATIVE-GRAPHICS-PSO. Original claim
Depends on: #497, #939, #984 and #974 (merged).
What and why
The normal shaders stage produced the compute pipeline library and the DXBC identity catalog. Device slot 57 could also look up raw graphics programs, but the build never populated that index. This follows up on the RDNA2 report in #497. Original report
<shaders>/fspx_gfx/index.json. The graphics build has an independent resume marker that validates its index and module files.--trace-d3d12switch reports catalog and kind-6 stage counts and the HRESULT. The full corpus test accounts for the new sub-index separately from carved DXBC containers.Offline retail checks
Native Windows 11 x64, MSVC RelWithDebInfo, RTX 5070 Ti, NVIDIA 617.42, Xbox 1.0.2.1. The control runtime was unmodified
c7e82e26e. The runs used a zero-capability AppContainer. The isolated control withheld only the DXBC identity catalog from the runtime inputs.The raw-only candidate trace attributed its successes to kind-6 lookups. The traces ended at title breakpoints after differing numbers of calls. They measure PSO creation during startup. World rendering and the reported RDNA2 iGPU still need their own verification.
Build and GPU validation
make_game.py --stages shaderscommand backfilled the graphics library in an existing workspace. Its index was byte-identical to a separate full pass. A second standard invocation reused all six groups without changing any of their index bytes, index timestamps or module sizes/timestamps.spirv-valfor 9,671/9,996 PS, 1,342/1,343 VS and 7,480/7,498 MS. All 18,493 published code hashes in each mode matched the complete extracted programs and had a module. The 344 remaining specialized programs were refused by the translator. Across 25,471 graphics records, raw keys alone supplied all stage links for 24,983. The DXBC catalog supplied all stage links for 25,450. Two records also refer to the unidentified slot 6.AI-assisted: Yes (Codex). The original claim is in #14. The successor tracker has the completion notice and the remaining specialized translation work.
@Snooozs on GitHub · 2026-11-25 14:47 UTC · original
This has conflicted with
mainsince the slot 57 state work (#1671, #1691, #1703) landed, so I mergedmain446574e76into it and tested that, in case it saves you the time:Snooozs/leonidabranchmerge-main-into-1592(one merge commit on your817b4be0b; take it withgit pull https://github.com/Snooozs/leonida merge-main-into-1592, or redo it as you like - I am not opening a second pull request).What needed a decision:
d3d12_xs_native_pso.h:mainadded the B4G4R4A4 stand-in blend retry aftercreate_pipeline, in the body you moved intobuild(). I moved the retry intobuild(), so it runs for both stage sources, and before your retry with indexed code (a catalog pipeline that succeeds with the blend fallback is returned, as onmain).native_pso.h: git merges this without a conflict, but it would not compile:native_pso_blend_testandnative_pso_depth_testonmaincallnp::plan(desc, map), and hereplantakes a third argument. I added a two-argument overload that only uses the records' containers.d3d12_translated_draw_test.cpp: keeps both--native-fspxand--dual-source.Tested on the merge, Windows 10 Pro 19045, RTX 5060 Ti, NVIDIA 621.01, MSVC 14.43 RelWithDebInfo: 24 of 24 of
d3d12_translated_draw,xbox_native_base_draw,xbox_native_fspx_draw,xbox_derived_mask_*,d3d12_dual_source_draw(_eager),d3d12_mesh,xbox_native_fspx_mesh,native_pso_blend/depth/fallback,device_proxy*,xs_proxy*,shader_library;tests/test_library_shaders_stage.py18 of 18 (before the overload was added; it is Python only). Not run: the wholectestset, a boot, the dual-source path together with indexed (kind-6) stages.I am translating the graphics programs from my own package with the merged
make_game.py(llvm-mc 23.1.6, wave64 emulation) and will add the counts here.AI-assisted (Claude Code).
@Snooozs on GitHub · 2026-11-25 15:08 UTC · original
Counts from my own 1.0.2.1 package, as promised: merged
make_game.py(translate_library_stages,fspx_gfxonly), llvm-mc 23.1.6,--wave64-emulate, 8 shards, 22 minutes including unpacking: 18,493 of 18,837 programs, all 18,493 pass spirv-val: 9,671 PS, 1,342 VS, 7,480 MS. Exactly your emulated numbers. AI-assisted (Claude Code).@BubsMcgee on GitHub · 2026-11-25 15:34 UTC · original
Retail-boot data point that this PR should fix (Windows 11, RTX 3080 Ti, driver 616.64; main-based runtime at
71a769d7d, shaders stage run from a 1.0.2.1 package):29277 translated shaders (2710 fspx, 0 fspx_compute, 0 fspx_gfx, 52 bvh, 12 exe)— the graphics program index is empty, matching DadaCap's "nofspx_gfxset" finding.device slot 57 (Xbox native graphics pipeline / PC lifetime tracker) first call, routed toDeserializeGraphicsPipelineStateX.ID3D12Device2::CreatePipelineStatefailures, paired fail/ok/fail/ok at trace records ~127452/127454 and ~128214/128215, then the boot continues to sessiondwith non-black frames.So those 4 failures line up with slot-57 native graphics PSOs that cannot resolve a graphics program without
fspx_gfx. This PR builds that index and adds the catalog/kind-6 retry, so it should turn them into successes. For contrast, #1497 (bary-fallback) and #1818 (on-demand console streams) do not apply to this boot: the device has fragment-shader barycentrics, and the boot is eager, notLEONIDA_PIPELINE_COMPILE=on-demand.I have not run this branch (it is CONFLICTING on current main), but I can test
Snooozs/leonida:merge-main-into-1592plus a fullfspx_gfxbuild and re-run this boot if that is useful. Counts and record numbers only; no game data.AI-assisted.
@DadaCap on GitHub · 2026-11-25 15:53 UTC · original
Retail result with this branch merged onto a tree of current
main(RTX 5080, NVIDIA 621.24), 18,735 of 18,837 programs infspx_gfx(18,493 from the pull request as it is, plus 242 of its refusals re-disassembled withtools/rdna2_decode.py; the remaining 102: 78DPP on v_cmpx, 18s_getpc_b64, 6 without a container). The ten hashes one run asked for at slot 57 are all covered. With it,native_hashes.txtand an indirect mesh merge, a run showed a world picture (#1608 finding).Two things that may save someone a day:
fspx_gfxbut nonative_hashes.txtthe title's frames were black from the intro on (the package splash stayed on screen); with both, or with the catalog alone, the intro plays. The log line isslot 57 has no native_hashes.txt; checking indexed native programs. My folder lacked it because I had re-translated with a script of mine.Merge notes: the only semantic conflict was the B4G4R4A4 stand-in blend retry in
d3d12_xs_native_pso.h(kept inside this pull request'sbuild()). ctest on the merge:xbox_native_fspx_draw,xbox_native_fspx_mesh,d3d12_translated_draw,native_pso_blend,native_pso_depth,native_pso_fallbackpass. AI-assisted (Claude Code).@BubsMcgee on GitHub · 2026-11-25 17:23 UTC · original
Tested
Snooozs/leonida:merge-main-into-1592(202d6d20f) in the retail boot — RTX 3080 Ti, driver 616.64.The slot-57 fix works:
spirv/fspx_gfx(18,493 programs) and logsdevice slot 57 routed to DeserializeGraphicsPipelineStateX, withslot 57 stage sources: catalog=1/2 kind6=0 hr=0x0;CreatePipelineStatefailures from the eager boot (~#127452/#128214) are gone;dat t75 s, 2,505 presents, 40/40 non-black frames, 0 device faults, and it starts streaming world data (160 file opens) from t97 s in a 240 s boot.Remaining on the same boot:
ID3D12Device2::CreatePipelineStatefailures, all onPipelineStream::Meshstreams (type 24, "contains a mesh shader; DXIL kind 13") — #137311/#137313/#138069/#138074 and #229763/#229766/#229771/#230854/#230861/#230868 (10 of 15 listed). Hundreds of other mesh streams created; the log gives no refusal reason for these 15.0xC0000005inamd_fidelityfx_upscaler_xbox.dll+0x65ff(read 0x10) at ~175 s, while the world is loading; a 120 s run does not reach it. That is the FSR path, not slot 57.0xC0000005inleonida::fsdraw::has_tsharp; that is our localLEONIDA_LOCAL_DIAGNOSTICSprobe, not this PR.@Rain156 @Snooozs: is the 15-stream mesh-shader refusal expected (programs the library does not carry?), and is the FSR crash at world load known? I can re-run with local diagnostics off for a clean digest.
AI-assisted.
@BubsMcgee on GitHub · 2026-11-25 17:26 UTC · original
Follow-up on the FSR crash: it is the FSPX translation, not slot 57.
spirv/fspxcarries 27 of the DLL's 29 programs;amd_fidelityfx_upscaler_xbox_03and_18are the two missing (all 29 are unpacked undershaders/fspx).DeserializeComputePipelineStateXcall 2694 returns0x80070057(E_INVALIDARG); that is the pass the DLL namesFFX_FSR4_PASS_4. It falls back to "NewBE", the runtime marks thatID3D12Device2::CreatePipelineStateunsupported (#123672), and the DLL'sCreateModel(...) == FFX_API_RETURN_OKassertion fires → the0xC0000005inamd_fidelityfx_upscaler_xbox.dll+0x65ffat ~175 s (the 120 s boot never reaches it).d, 2,505 presents, 40/40 non-black, 0 device faults, 160 world files opened, and the 18,493-programfspx_gfxresolving slot 57.So the world-load blocker is translating the two missing FSPX programs (pass 4 is presumably
_03/_18).@Rain156 @Snooozs is this two-program FSPX gap already owned/tracked elsewhere?
docs/fspx.mdcurrently says 27 of 29 translate, so it may be known. I can file it as a finding if not.AI-assisted.
@kurrutako on GitHub · 2026-11-25 17:53 UTC · original
@BubsMcgee on the two missing FSPX programs: #1862 (SHADER-FSPX-DOT4-EXACT, open) is the fix for that gap. With it, all 29 FSPX programs translate on a retail copy here (27 of 29 on
main). Retail boots on an RTX 5070 with #1862 merged no longer end in theamd_fidelityfx_upscaler_xbox.dllaccess violation; before it, my boot hit it at about 210 s. Those boots did not have this branch, so I can't say how the two interact. AI-assisted.@OreoFR on GitHub · 2026-11-26 19:08 UTC · original
@Rain156 is this still on your side? It now conflicts with
main(needs rebase). Two things that may help:DPP on v_cmpxrefusals DadaCap counted here now translate. That leaves 18s_getpc_b64and 6 without a container.mainmerged into this branch (Snooozs/leonida:merge-main-into-1592), and BubsMcgee confirmed slot 57 loads 18,493 programs with it.Happy to test a rebased branch on an RTX 4070 Laptop (NVIDIA 621.40). If you'd rather hand it over, say so and someone can carry it on. AI-assisted (Claude Code, Claude Opus 5.5).
@Coderlord on GitHub · 2026-11-27 13:13 UTC · original
@Rain156 @OreoFR this conflicts with today's
main(63185f4a3) in three files, all against the new slot-57 blend and depth state. Here's a resolution, in case it saves someone the work:Coderlord/leonida-ubiq:merge-main-into-1592(de01b1372, two commits on817b4be0b: the merge, then a test fix).d3d12_xs_native_pso.h: this PR'sbuild()(catalog container or the library's indexed program, and the retry with the indexed bytes) now holds main's B4G4R4A4 stand-in blend retry, so both attempts get it. Includes from both sides.d3d12_translated_draw_test.cpp: main's--dual-sourceand this PR's--native-fspxside by side, with the kind-6/FSSM wording in the closing line.CMakeLists.txt: main'sd3d12_mesh_heavy_cacheand this PR'sxbox_native_fspx_mesh.native_pso_blend_testandnative_pso_depth_testcallplan()with two arguments, so they don't build against this PR's three-argumentplan(). They now pass a code-stage callback that knows no code ranges.Tested on an RTX 5080 (NVIDIA 621.40, Windows 11) as part of an integration branch with these same four files plus other open PRs: the 11 tests on these files pass (
d3d12_translated_draw,d3d12_dual_source_drawand_eager,xbox_native_fspx_draw,d3d12_mesh,d3d12_mesh_heavy_cache,xbox_native_fspx_mesh,native_pso_blend,native_pso_depth,native_pso_fallback,dual_source_fragment; the twonative_pso_ones after the test fix). This branch alone was not built. AI-assisted (Claude Code).View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.