D3D12.X: queue #18 before the layout is known writes 8 bytes #120
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/121"
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 ivall/xcl. Originally posted by gefydev on 2026-11-23T13:23:02Z.
#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.Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T14:14:09Z.
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!