d3d12: page bindless compute roots through the resource index map #235
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!235
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-235"
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?
@ReverendOzmund on GitHub · 2026-11-26 14:50 UTC · original
ReverendOzmund:d3d12-bindless-compute-roots→main· +71 −1 · 3 files · 1 commits · openFixes the skips reported in #232. With descriptor paging active, every dispatch of a compute pipeline whose root is CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED with no descriptor tables (only root constants and root descriptors) was dropped as
pipeline has no paged descriptor layout: its root indexes the resource heap directly. On ProjectScarlett those come from guest callers 0x248cbc1, 0x248cd0f, 0x2951ba and 0x56bba. On NickStallman's RTX 5090, 0x248cbc1 and 0x2951ba account for most of the ~1,000 skips per world frame.Summary
reflected_rootonly described compute roots with one or two leading tables, or tables followed by constants and descriptors. A table-less bindless root matched neither, so it fell through toUnsupported, got no reflected layout, and the paged path refused it.reflected_rootnow gives a table-less, heap-indexed compute root a reflected layout: the guest's own parameters unchanged, plus the resource index map as a root SRV at t0, space32766. It's visible to all stages, where the raster form uses pixel only.tb_heap_mapwhen the root carries that SRV (heap_mapinsetup.rs), so these programs translate astb_heap_index(i), a guest-to-host lookup, instead of using the guest index directly.with_reflected_tablenow binds the index map for compute, as it already does for raster. Without an arena it binds the identity map, so behaviour without paging is unchanged.bindless_compute_roots_have_no_tables_and_index_the_heapcovers the root shapes this accepts and the ones it leaves to the existing paths.cargo check --target x86_64-pc-windows-msvc --testsis clean, andbuild.py d3d12builds.Verified on Lanes
python tuxbox.py checkpassed on this branch: not yetDraft. No Lanes scenario binds a table-less, heap-indexed compute root with paging active yet. I'll add one, but the in-game effect is the real test. NickStallman offered to run it on the 5090 past the story intro, and I'll run it on a 3080 Ti. The number to watch is the skip count from #223's reason text, which should drop to zero for these callers.
GPU, driver and backend: RTX 3080 Ti, 620.70.06, GE-Proton11-14 (build only so far).
🤖 Generated with Claude Code
https://claude.ai/code/session_01KP1nQKEc17PvmrwfPtLi8Z
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.