d3d12-shader/gpu: view-address table for dynamically picked structure descriptors (D3D12-SHADER-SLOT-VIEW-ADDRESSES) #2661
Open
github-bot
wants to merge 13 commits from
github-bot/gh-2661 into main
AGit
pull from: github-bot/gh-2661
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
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 in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
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!2661
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2661"
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?
@zmasi on GitHub · 2026-11-30 00:09 UTC · original
zmasi:feat/d3d12-shader-slot-view-addresses→main· +1578 −36 · 9 files · 13 commits · openClaimed in the coordination issue as: D3D12-SHADER-SLOT-VIEW-ADDRESSES (#2570, #2570)
What and why
Implements
D3D12-SHADER-SLOT-VIEW-ADDRESSESacrossleonida-shaderandleonida-gpu, resolving the opend3d12/docs/fork-ray-tracing.mdgap where ray-tracing shadow-mask trace programs read an acceleration structure's 64-bit title virtual address out of a descriptor picked from the view heap or a descriptor table by a computed index:SLOT_ADDRESSESRoot SRV (t251,ROOT_CBV_SPACE) &USER_TABLE_BASE(0x10b):251(SLOT_STRIDES_COUNT64-bit(low, high)word pairs,16 MiBupload buffer alongsideSLOT_STRIDESatt252) andRootType::Other(USER_TABLE_BASE)(0x10b, un-snapshotted byte offset of aRootType::Tablein the title's view heap) ind3d12/crates/leonida-shader/src/emit/{shader.rs,mod.rs}and wiresSLOT_ADDRESSESlazily ind3d12/crates/leonida-shader/src/emit/diff_tests.rs.d3d12/crates/leonida-shader/src/emit/lower.rs):Lower::slot_address(slot)clampingslottoSLOT_STRIDES_COUNT - 1(UMINtaggedTag::Clamp) and emitting a 2-dwordrawBufferLoadatslot << 3fromSLOT_ADDRESSES.title_heap_indexandtitle_fetched_index(unreplaced_table_wordviaUSER_TABLE_BASE) so dynamicRootType::TableSLOT_ADDRESSESlookups index the title's view heap even whendraw::State::tablessnapshots the table's static CBV / half-format / capped-heap entries into dynamic slots or reuses content-addressed tables (LEONIDA_CONTENT_TABLES).slot_byte_mod32/dynamic_mod32to fold constant sub-slot byte offsets acrosss_or_b32,v_or_b32,v_lshl_or_b32,v_lshl_add_u32,s_lshl*_add_u32, shifts, additions, and phis (resolving+0/+4word starts accurately while rejecting+8..+28).Lower::descriptor_dataandLower::unused_descriptor_kind(read(k)checking bothb.phisandb.insts, requiringslot_byte_mod32 == 0and(2..5).any(read)on 8-dword 2D image dimension queries) so scalars_load_dword..s_load_dwordx4and address-onlys_load_dwordx8loads (including branch-joined phi loads and+4high-dword reads) resolve(lo, hi)throughview_address.Lower::flatso per-laneglobal_load_dword*(n <= 4, sub-slot byte0 | 4) resolves fixed-offsetTablereads viaUSER_VIEW_ADDRESSand computed-indexResourceHeap/Tablereads viatitle_fetched_index+slot_address.d3d12/crates/leonida-gpu/src/{descriptor/host.rs,draw.rs,pipeline/host.rs}):view_address(+is_structure_view, plusmake_twinnedView::Placedacceleration-structure guard) to extract 48-bit title virtual addresses from bothView::ShaderandView::Placed(RAYTRACING_ACCELERATION_STRUCTUREdesc[1] == 11and buffer views).HostHeap::addresses(SLOT_STRIDES_COUNT * 8bytes upload buffer written via single atomic 8-byte-alignedu64::write_volatilestores),title_countpreservation for capped heaps, lock-freestructure_count: AtomicU32+structures: Mutex<HashMap<u32, u64>>, andwrite_address/note_structure/clear_structureacross all static and dynamic slot lifecycle paths (including freeing dynamic slot ranges inHostHeap::release_many).USER_TABLE_BASEinState::host_word, registersSLOT_ADDRESSESinpipeline::host, bindsheap.addresses_gpu()inState::bind(State::heap_addresses) without triggeringheap_buffer_pass, and includesheap.structure_addresses()inState::memory_ready(0diff lines ind3d12/crates/leonida-gpu/src/host.rs).Tested
origin/main):HeapDwordx4,HeapDwordx8,HeapBranchPhiDwordx8,HeapSplitOffset4,TableDwordx4,HeapGlobalDwordx4) fail translation withErr("a descriptor read only as data")/ unsupported global descriptor load.cargo test --manifest-path d3d12/Cargo.toml -p leonida-shader --lib -- --test-threads=4andcargo test --manifest-path d3d12/Cargo.toml -p leonida-shader --features host -- --test-threads=4->369 passed; 0 failedon NVIDIA GeForce RTX 3090 D3D12, Microsoft WARP, and DXIL validation (including all 7emit::intersect_testsPickedAddressshapes across 311 ray/node cases, loop-carriedHeapLoopSplitOffset4, distinct per-parity 42-bit structure addresses, decoupledUSER_TABLE_BASE,+8/phi + 4/ unalignedv0 << 2negative refusals, and fixed-offsetTableglobal_load_dwordx4->USER_VIEW_ADDRESS).cargo test --manifest-path d3d12/Cargo.toml -p leonida-gpu --lib descriptor:: -- --test-threads=4->67 passed; 0 failed(includingview_address_tabledynamic AS cleanup across both uncapped and cappedtitle_count-straddling runs and compatibility withQueueMarks,LEONIDA_SPANS_QUICK, andLEONIDA_KEEP_BY_LIST).cargo test --manifest-path d3d12/Cargo.toml -p leonida-gpu --lib draw::tests -- --test-threads=4->4 passed; 0 failed(including end-to-end RTX 3090 dispatchsnapshotted_cbv_table_keeps_title_base_for_picked_view_addressescombining a CBV at table slot0with a dynamicTableDwordx4structure-address read at table slot19).cargo test --manifest-path d3d12/Cargo.toml -p leonida-gpu --lib pipeline::host::tests -- --test-threads=4->9 passed; 0 failed.cargo clippy --manifest-path d3d12/Cargo.toml -p leonida-shader -p leonida-gpu --testsand--features diagnostics --tests->0warnings on touched lines;python -I scripts/check_no_game_data.pyclean.GPUs tested: NVIDIA GeForce RTX 3090 (driver 610.88) and Microsoft WARP, Windows 11 Pro (26200)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a:d3d12/crates/leonida-shaderDXIL backend;docs/design.mdcoverstools/rdna2spirv.py)@merzleckeier on GitHub · 2026-11-30 01:01 UTC · original
Independent Wine check of the computed descriptor addresses on
272aaec05merged intob8bd37111(tree6c658aa8e). Win64 withleonida-gpu/diagnosticsandleonida-shader/host, Wine 11.22, VKD3D-Proton71cae091, RTX 4070 SUPER (620.73.04) and Radeon Raphael (RADV 26.3.1).draw::tests::snapshotted_cbv_table_keeps_title_base_for_picked_view_addressesreturned[0, 0, 0, 0]in 3/3 RADV runs withVK_EXT_descriptor_heapenabled. The same binary passed 3/3 after setting onlyVKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap; the log then showedVK_EXT_descriptor_bufferbindings. NVIDIA passed 3/3 with each backend. A logging-only follow-up confirmed the four-dword readback assertion was reached in every passing mode. Setting the output buffer’s initial state toUNORDERED_ACCESSalone repeated the same RADV split in one run per mode.intersect_testspassed on each GPU. The new test compiled all seven address shapes and executed them with its synthetic memory stand-in. In three compiler-only controls onmainwith the same input generator, six shapes were rejected andHeapBranchPhiDwordx8lowered.view_address_table_tracks_structures_buffers_and_clearsreached its final capped-heap cleanup assertion on both GPUs with each backend. The two failures in the widerdescriptor::filter also reproduced on plainmainwith both backends (halves_cross_an_unsigned_buffer_view_unchangedandviews_are_made_beside_the_heap_and_copied_in).Synthetic fixtures only. AI-assisted with OpenAI Codex.
@zmasi on GitHub · 2026-11-30 01:14 UTC · original
Thanks for the thorough multi-backend run across RTX 4070 SUPER and Radeon Raphael!
Good observation on the
VK_EXT_descriptor_heapRADV split:snapshotted_cbv_table_keeps_title_base_for_picked_view_addressescreates its CBV and raw UAV viaHostHeap::put(descriptor/host.rs), which creates descriptors in the thread-local CPU staging heap (staged()) and copies them into the shader-visible heap withCopyDescriptorsSimple— the exact same path exercised by the twomaintests (views_are_made_beside_the_heap_and_copied_inandhalves_cross_an_unsigned_buffer_view_unchanged) that showed the sameVK_EXT_descriptor_heapvsVK_EXT_descriptor_bufferbehavior on RADV 26.3.1.AI-assisted.
@merzleckeier on GitHub · 2026-11-30 01:19 UTC · original
Follow-up on the descriptor staging hypothesis. I reran the exact draw test on
272aaec05merged into0eab02a8b(tree520444fa7), with fresh Wine processes forLEONIDA_VIEW_COPY=1and0.staged()returnsNonewith0, soHostHeap::atwrites into the final slot andcopy_toskips the staging copy.MEASURED On RADV, the descriptor-heap backend still returned
[0, 0, 0, 0]in 3/3 runs with staging and 3/3 runs with direct writes. The descriptor-buffer backend passed 3/3 with each setting. NVIDIA passed 3/3 in all four combinations. The heap/buffer backend was confirmed in the VKD3D logs.For clarity on the earlier controls, the two wider descriptor-suite failures also occurred on plain
b8bd37111with both backends. The all-zero draw readback is the result that depends on the backend in this matrix.Synthetic fixtures only. AI-assisted with OpenAI Codex.
182d0c1746) into feat/d3d12-shader-slot-view-addresses b6e4989235@ammonium231 on GitHub · 2026-11-30 05:59 UTC · original
RTX 3090 / 621.40, validation on,
b6e498923merged onto main1d22590b9: leonida-shader --lib and --features host 371 pass, 4 ignored (main 370); descriptor:: 67 (main 66) incl. view_address_table_tracks_structures_buffers_and_clears; draw::tests 4 (main 3) incl. snapshotted_cbv_table_keeps_title_base_for_picked_view_addresses. No validation errors.e1fe82f63) into feat/d3d12-shader-slot-view-addresses 19e23c2aeb@ammonium231 on GitHub · 2026-11-30 11:42 UTC · original
RTX 3090 / 621.40, validation on,
19e23c2aemerged onto main0568cd62e: shader --lib and host 386 pass, 4 ignored (main 385); descriptor:: 68 (main 67) and draw::tests 4 (main 3), incl. both new tests. No validation errors.@KelboLive on GitHub · 2026-12-01 14:41 UTC · original · reviewed
Reviewed
b05875ff7and the merge with current main (81ff5e1b1). The computed-index claim holds:view_address/slot_byte_mod32(lower.rs:4985-5026,:4725-4746) split fixed-Tablefrom dynamic/ResourceHeaplookups,USER_TABLE_BASEreturnshandle - heap.start(draw.rs:2836-2838) andunreplaced_table_wordadds the snapshot delta (lower.rs:10554-10566), so a table picked at a computed index still addresses the title's heap aftertables()copies static entries into dynamic slots. The e2e draw test reads back exactly[0x13572468, tlas_lo, tlas_hi, 0xcafebabe], and the 311-case intersect test checks per-lane addresses across all seven shapes.The sub-slot guard is live: reverting the
0 | 4acceptance makesa_structure_address_picked_by_computed_indexfail withUnsupported { offset: 164, what: "a descriptor read only as data" }. Tests here: shader 405/405 (also--features host), descriptor 69/69, draw 4/4, pipeline 9/9,check_no_game_dataclean, and a locally merged tree compiles and passes the targeted tests — so the cleanmerge-treeis not merely textual.Two non-blocking notes:
View::Placedacceleration-structure fallback atdescriptor/host.rs:5206-5214(desc[4..5]elsedesc[10..11]) has no test: the placed case setsdesc[4..5]and leaves[10..11]zero, although the test comment calls it the "placed-base fallback".descriptor/host.rs:2383-2394) even when no shader asks forSLOT_ADDRESSES— consistent with the existing 8 MiBSLOT_STRIDEStable, but it doubles the fixed per-heap upload cost, which is worth knowing on a 16 GB card.The branch is 271 commits behind and main has since touched
lower.rs,mod.rs,draw.rsanddescriptor/host.rs, so rebase before merging even though the merge is clean.@KelboLive on GitHub · 2026-12-01 14:56 UTC · original
Second pass on the same head, adding three things the first review did not cover (the core claim and the
0 | 4mutation both still check out):d3d12/docs/fork-ray-tracing.md:128-131lists the five shadow-mask programs as needing "a table of addresses by slot", while the body says this PR provides it. The PR touches no docs, so the page will contradict the code after merge.unused_descriptor_kindgoes from8 if (1..5).any(read)to8 if aligned && (2..5).any(read)(lower.rs:9339), butalignedusesis_none_or(:9327-9332), so an unproven dynamic mod-32 still counts as a descriptor start — the opposite of "no defaulting unproven offsets". It may be right (the width spans dwords 1–2), but it is unverified: a corpus count or a test would settle it.structure_addresses()returns only RTAS views (host.rs:2695,is_structure_view:5218), so a buffer address picked through the same table gets nomemory_readytreatment (draw.rs:2947). The intersect test covers buffers only through theTEST_MEMORYfixture. Intentional?Also, for anyone reusing
cargo-target-2661: a staleLEONIDA_SHADER_SOURCE_HASHfrom an earlier mutation run makessource_hash_tests::the_source_hash_leaves_the_test_modules_outfail with a mismatched hash untilbuild.rsis touched — it is the shared target dir, not the PR.@merzleckeier on GitHub · 2026-12-01 15:09 UTC · original
I ran a two-vendor synthetic dispatch verification on
b05875ffmerged intoedf7d01f8, with Win64 MSVC-target binaries under Wine 11.22 and VKD3D-Proton 3.1.0. All seven intersect_tests and the two GPU descriptor/draw tests passed on Radeon Raphael (RADV 26.3.1) and RTX 4070 SUPER (620.73.04).The computed-index test actually needs an SM 6.6 device to pass. It dispatches the seven synthetic address forms, including the branch/loop offsets and per-lane global load, with a CPU oracle and different 42-bit structure addresses per lane parity. Its rejection cases and fixed-table-offset path passed as part of the same test. The descriptor tests also exercised listed-view cache hits and clears and the retained title base for a snapshotted CBV table. DXVK reported no WARP adapter, so this is physical-GPU coverage. The dispatch fixture uses its synthetic node-memory stand-in. MEASURED, AI-assisted (Codex).
@MoonEyes on GitHub · 2026-12-02 12:23 UTC · original
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
@Kal0s-design on GitHub · 2026-12-02 15:04 UTC · original
Ran natively on Windows 11, head
1b3f3dee0merged into currentmain(69cd4106c, clean merge), debug test profile. This head is theSLOT_TLAS_*reconcile merge, which the earlier reports don't cover.PR tests and suites on the merge
emit::intersect_tests(--features host, debug layer on, run twice)descriptor::+draw::tests+pipeline::host::tests, card, debug layer onleonida-shader --lib --features host, fullleonida-gpu --lib --features diagnostics, full, WARPThe intersect tests pick the hardware adapter and WARP themselves.
a_structure_address_picked_by_computed_index_translates_and_runs_on_the_cardloops over both and prints "no SM 6.6 ... device; skipped" when one is missing. That line never appeared, so both dispatches ran.view_address_table_tracks_structures_buffers_and_clearsandsnapshotted_cbv_table_keeps_title_base_for_picked_view_addressesran on both the card and WARP and passed with the debug layer enabled. Clippy on both crates (--tests,diagnostics,host): nothing in the files this PR touches.d3d12_switches.py --checkis clean.On the reconcile:
SLOT_ADDRESSES(251) andSLOT_TLAS_BASE..=SLOT_TLAS_MAX(230 to 241) don't overlap. Both are in theourslist inpipeline/host.rs, and the bind loop indraw.rschecks them one after the other. Lowering fills them from separate places:tlas_srvscomes from lifted ray queries inrayquery.rs, andSLOT_ADDRESSEScomes from the software-traversal loads inlower.rs. The new 2,048-slot sampler-heap branch allocates no address table (addressesisNonefor samplers, checked).Extra throwaway host tests on the address table (not pushed), 1 run on the card and 2 on WARP, all passed
write_address(SLOT_STRIDES_COUNT, ..)release_manyin two runsstructure_count20,000, then 0; sampled entries correctmake_null, against a 1.5 s CPU readerstructure_countequal to the map size at the endTwo observations, neither blocking:
release_manyremoves freed dynamic slots fromstructures, but their table entries keep the old address until the slot is reused (0x12345678aa0was still there after the release). This matches the descriptors themselves, which are also left in place, and reallocating the run and nulling a slot rewrote its entry (the only reuse path I tried). A shader would only see the stale value if it read a freed slot.title_count. On the card, asking for 1,000,000 or 2,000,000 slots gavecount737,855 with dynamic slots 737,855 to 999,998, all belowtitle_count, soupdate_dynamic_addressnever writes them and their entries hold the title's own slots. That looks like the intended behaviour (shaders index title slots throughUSER_TABLE_BASE). I mention it because the PR's straddle test only covers the case wheretitle_countfalls inside the dynamic range. The largest heaps I could make ended at slot 999,998 on the card and 2,097,150 on WARP, inside the 2,097,152-entry table. Only a title count above 2,097,152 clamps (title_count2,097,152 for a 4,000,000 request).Small doc nit: the merged
switches.mdrow forLEONIDA_LATE_WAITnow namesleonida-gpu/descriptor/host.rs +3instead ofleonida-gpu/host.rs +2. The switch lives inhost.rs(13 mentions). The newwrite_addresscomment is the only mention indescriptor/host.rs, but the generator picks that file.--checkstill passes.Not checked: an in-game run (the gate asked for above), GPU-side reads racing CPU table writes in flight (only a CPU reader was used), debug-layer messages beyond what a failure would surface, red on
main(already shown by others), and AMD.GPUs tested: one NVIDIA desktop card + WARP.
AI-assisted: yes (Claude Code).
@enlight3d on GitHub · 2026-12-02 17:07 UTC · original
RUN (in game, gate-style, as asked by MoonEyes): head
1b3f3dee0tested in a batch with #2643 (2cea6871c), #3031 (a47b86855), #2789 (4bd128a8c) and #2661 (1b3f3dee0), all merged withgit merge --no-ffontomain23a51c494(no conflict; the only file the four share isd3d12/docs/switches.md). Built withdiagnostics,mimalloc, targetx86_64-pc-windows-msvc. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300).Launcher defaults, Series S settings,
-NoDlss -NoFrameGen, standing at the save; a warm-up run first (the batch changes the translator, so everything was re-translated), then one run of 420 s with the memory safety stop:Verdict: PASS for the batch (a pass covers each of the four; a failure would not have said which). Not covered here:
-RayTracing(a run with it is queued), DLSS frame generation with ray tracing (needs an RTX 40/50 card), other GPUs.AI-assisted: Claude Code (Claude Opus 5.5)
@MoonEyes on GitHub · 2026-12-02 18:03 UTC · original
Light code review only, not built (Windows-only
leonida-shaderandleonida-gpu). Ready, on the runs already posted on this head.1b3f3dee0, merge base229d352ee, 188 behind currentmain45dc41f95. A trial merge is clean. CI on the head: all 6 checks pass.emit::intersect_testswith the debug layer: 7/7, twice.descriptor::,draw::testsandpipeline::host::testson the card and on WARP with the debug layer: 107 passed each.leonida-shader --features host: 429 passed.leonida-gpu --features diagnostics: 779 passed.-RayTracing.Review notes (1,578 added across
emit/lower.rs,emit/shader.rs,descriptor/host.rs,draw.rs,pipeline/host.rs):SLOT_TLAS_*, kept in step with the heap. This replaces assuming a fixed slot, so the change is at the root rather than a special case.write_address(SLOT_STRIDES_COUNT, ..)shows the index guard skips out-of-range writes instead of corrupting the table.d3d12/docs/fork-ray-tracing.md:186-189("Five shadow-mask trace programs do not translate ... the host would have to give a table of addresses by slot"), but leaves that line as it is. Onlyd3d12/docs/switches.mdis updated. Please update or remove that bullet so the docs match.-RayTracing, and #3031 in that batch is under an author "do not merge" for ray-tracing hangs. So the in-game PASS most likely never ran the new lowering. Its evidence is the unit and debug-layer dispatches above. A run with-RayTracingon this head alone, with the translate count for those five programs, would be the meaningful check. enlight3d has a-RayTracingrun queued.Verdict: ready on code and unit evidence, with one docs fix (
fork-ray-tracing.md:186-189). I would wait for the queued-RayTracingrun before merging.AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
@fiestorra on GitHub · 2026-12-03 05:59 UTC · original
VERIFY-2661 — 428 tests del shader en verde, y el cambio es el más grande de
emit/lower.rsEl título: «view-address table for dynamically picked structure…» — una tabla de direcciones para estructuras elegidas dinámicamente, y
lower.rs+494 es donde vive.Y es el tercero de la familia que ya he visto tres veces esta noche:
#2800(cadenas canónicas),#2686(latches paradxil-spirv),#2698(mad_legacy) — y ahora#2661: el emisor tiene que producir una forma que el consumidor sepa leer, y la tabla de direcciones es el contrato.Lo que verifiqué: 428 tests del crate con el cambio.
Lo que no: que un shader que elige una estructura en tiempo de ejecución se traduzca al DXIL correcto — el test comprueba la emisión, no el consumo por
dxil-spirv.Y una observación sobre estas cuatro: son de tres autores, tocan el mismo
emit/y ninguna se ha fusionado. Si las cuatro entran por separado,lower.rsybitcode.rsvan a chocar cuatro veces — la misma aritmética quetests/test_win_launchers.py, en el otro fichero más disputado del repositorio.@MoonEyes on GitHub · 2026-12-03 18:03 UTC · original
In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #2822, #2800, #2664 and #2661 merged into main
09273248c; this PR tested at its current head1b3f3dee0. Series S 1080, DLSS FG 2x,play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed, scripted walk, 330 s, screen kept on.AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.