mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #1592] shaders: build the graphics program index for device slot 57 (RT-SLOT57-NATIVE-GRAPHICS-PSO) #1610
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1610
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1592
Author: @Rain156
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:rain/slot57-graphics-library📝 Commits (2)
446f3f9shaders: build the native graphics library and resolve slot 57 by program identity817b4betests: keep pipeline-library graphics separate in the full corpus check📊 Changes
18 files changed (+489 additions, -168 deletions)
View changed files
📝
docs/fspx.md(+11 -5)📝
docs/shader_library.md(+26 -1)📝
make_game.py(+76 -23)📝
runtime/CMakeLists.txt(+4 -1)📝
runtime/shims/d3d12_vulkan_device.cpp(+9 -8)📝
runtime/shims/d3d12_xs_device.cpp(+8 -5)📝
runtime/shims/d3d12_xs_device.h(+2 -2)📝
runtime/shims/d3d12_xs_native_pso.h(+84 -29)📝
runtime/src/native_pso.h(+22 -16)📝
runtime/src/shader_library.h(+15 -10)📝
runtime/test/d3d12_mesh_test.cpp(+51 -37)📝
runtime/test/d3d12_native_graphics_fixture.h(+34 -3)📝
runtime/test/d3d12_translated_draw_test.cpp(+27 -5)📝
runtime/test/device_proxy_test.cpp(+6 -0)📝
runtime/test/shader_library_corpus_test.cpp(+7 -8)📝
runtime/test/shader_library_test.cpp(+6 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+8 -0)📝
tests/test_library_shaders_stage.py(+93 -15)📄 Description
Claimed 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.