d3d12: evict descriptor tables in one pass and keep submission off the table lock #395
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/395"
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 NickStallman on 2026-11-28T12:19:48Z.
Summary
When a shader-visible descriptor table didn't fit, each eviction scanned every resident table for the oldest unpinned one, and the allocation repeated that until a contiguous span opened.
tableslock, whichExecuteCommandListsalso takes to pin tables and record its batch.In ProjectScarlett (RTX 5090, 620.70.10), this showed up as the title's watchdog exiting with code 5, "Unsignaled CrossQueueBarrier":
push_in_flightwhile a recording thread runsevict_oldest.Changes:
TUXBOX_LOG, an allocation that evicts more than 64 tables, or takes over 20 ms, is logged with its cost.This is rebased on #361, which already limits which tables a descriptor write visits, so that part is not repeated here.
Effect in game: not shown. Correction (29 Nov): this description first claimed that a run with the change had "its first minute in the world at 115 fps" with no forced label releases. Both were wrong: 115 was a screenshot brightness average from our run tool, not a frame rate. That run logged 9 forced label releases, the first about 21 s after the story load, and presented two frames of about 20 s each before the device was lost. The unit tests below and the minidump are the evidence for this change; I have no measured game speed-up.
Tested
The new unit tests fail on
main:mainunder Wine. The whole suite now runs in 0.08 s.main, and doesn't now.No Lanes scenario covers this: the behaviour is unchanged; only the cost and the lock scope change.
GPU, driver and backend:
Commands run and their results:
🤖 Generated with Claude Code