Repository navigation
d3d12: --trace-d3d12 records the outcome of CreateCommandSignature, CreateQueryHeap and CreateHeap - #7617
d3d12: --trace-d3d12 records the outcome of CreateCommandSignature, CreateQueryHeap and CreateHeap#7617sennecools wants to merge 2 commits into
Conversation
…utcomes These three device methods returned bare HRESULTs, so --trace-d3d12 left no line for them. Every return now goes through d3d12_trace::result; the results are unchanged. d3d12_com_test makes the calls on a device over its own Vulkan device, and a new d3d12_trace_queue test checks the ok, unsupported and failed lines. AI-assisted.
|
Tested
No game files used. AI-assisted testing. |
runtime/shims/d3d12_vulkan_device.cpp conflicted in CreateHeap with ItsNotRexed#6569 (heap_desc_refusal now takes state_.uma); kept main's call and this branch's traced d3d12_trace::result returns. AI-assisted.
|
Merged main Re-tested: |
|
Tested
AI-assisted. No game files used. |
|
Checked head
No game data. AI-assisted (Claude Code). |
|
Reviewed e8affec, code read only (not built, no MSVC or GPU here), AI-assisted: all 17 returns in |
Claimed in the coordination issue as: claim
Depends on: none. It conflicts on adjacent lines with open PRs that edit the same two functions: #3929, #5129, #7330 (
CreateCommandSignature) and #1846, #5808, #6257 (CreateHeap; #6569 has merged and main is merged into this branch). Whichever lands second keeps thed3d12_trace::resultwrap on its returns; #1846'sCreateHeap1delegates toCreateHeap.What and why
--trace-d3d12left no line forCreateCommandSignature,CreateQueryHeapandCreateHeapon the Vulkan device: they returned bare HRESULTs. On the retail boot path the title calls the first two, and a refused command signature (E_NOTIMPL) was invisible in the numbered trace, soboot_trace.pycounted no failed call at that stop.Every return of the three methods now goes through
d3d12_trace::result, asCreateDescriptorHeapdoes. HRESULTs, checks and their order are unchanged. Root signatures and pipeline creation are left to #4853.Tested
Windows 11, MSVC (VS 2022 Build Tools), RX 9070 XT (driver 32.0.32029.2010).
d3d12_trace_queue(check_d3d12_trace.py --queueond3d12_com_test, which no ctest ran before): seven new lines,ok/unsupported/failedfor a command signature,ok/failedfor a query heap and a heap. It fails without the.cppchange ("Missing or out-of-order trace entry") and passes with it; exit 77 skips without a Vulkan device.d3d12_com,d3d12_gcl8,d3d12_tracepass;d3d12_com_testexits 0 underLEONIDA_VK_VALIDATION=1.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (no translator rule here)