d3d12: publish a descriptor write only to the tables that can hold it #361
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/361"
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 brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T02:54:52Z.
Summary
Arena::publish(runtime/d3d12/src/device/descriptor_paging.rs) copies a descriptor write into every resident table that holds the written slot. To find those tables it walked the wholerangesmap on every call, and every descriptor write publishes. So one write cost as much as the full set of resident tables.Tablesnow keepslongest, the length of the longest range ever inserted. A table that starts more thanlongestslots before the write cannot reach it, sopublishvisits onlyranges.range((first - longest, 0)..(end, 0)). The tables it copies into are the same as before.longestonly grows, so it stays a valid bound when tables are evicted.Measured in ProjectScarlett's first world scene on AMD (Series S profile, ray tracing off), sampling the whole game process with
perffor 10 s:Arena::publishshare of the game's CPUThe world is still CPU-bound after this, on the placed-texture refresh path (#292), which I am working on separately.
Tested
mainhere, see below)The result is the same set of copies, so there is no new behaviour for a Lanes scenario to cover; the existing
d3d12-*suites exercise descriptor publication.GPU, driver and backend: AMD RX 9060 XT, Mesa RADV 26.1.8, Linux 7.3.1; checks on Proton Experimental, the game on GE-Proton 11-14
Commands run and their results:
Both Lanes failures happen on plain
main(df4f27c) on this machine too:invalid-routechecksroute-game.exe's exit status and has failed here before, andpython tuxbox.py verify --only lanes-selftestonmainfailslanes-selftest-mesh-signature-nonethe same way. Neither involves the code this changes.Checks
No evidence JSON changes.
🤖 Generated with Claude Code
Imported from brcly/TuxBox. Originally posted by Jerkin42 on 2026-11-28T04:20:07Z.
I only have an AMD card (RX 9060 XT, RADV), so the NVIDIA half of the checks is still open. If someone with an NVIDIA GPU can run
python tuxbox.py checkon this branch and post the summary, that would cover the vendor row. Thank you!