D3D12.X: queue #18 before the layout is known writes 8 bytes #121
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!121
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/121/head"
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?
@gefydev on GitHub · 2026-11-23 13:23 UTC · original
gefydev:d3d12x-queue-slot18→main· +66 −0 · 1 files · 1 commits · merged 2026-11-23 14:13 UTC#104 item 4.
Until the title's calls show which queue layout it has,
queue_dispatchsent #18 to the older layout's GetDesc, which writes a 16-byteD3D12_COMMAND_QUEUE_DESC. On the newer layout #18 isGetTimestampFrequency(UINT64*), so a call before the first Signal wrote 8 bytes past the out-param.Changes:
QUEUE_OLDER). This is the same test the dispatch already uses to route those slots.Cost: an older-layout title that calls GetDesc before it signals anything gets Flags / NodeMask unwritten. Before this change, a newer-layout title in the same position had its stack overwritten.
Test
queue_slot_18_before_the_layout_is_known_writes_8_bytesuses a fake adopted queue (its own PC table). It checks the 8-byte write before the layout is known, then the full description after a fenced Signal at #14. Without the change it fails (all 16 bytes written). The other lib tests that run on a GTX 1650 under Wine pass too. Not run with a retail title.@ivall on GitHub · 2026-11-23 14:14 UTC · original
Merged. Checked on Windows 11 with an RX 9070 (RDNA4), merged together with the rest of #110–#129:
cargo test --workspacegreen with the retail samples (shader pack, console DLLs, texture archive), lib tests also withXCL_SPLIT_WAVE64=1; the retail pack still translates 26 698 / 26 698; the FSR4 GPU probe passes; Unicorn Overlord and XDefiant run. Thanks!