Skip to content

d3d12: --trace-d3d12 records the outcome of CreateCommandSignature, CreateQueryHeap and CreateHeap - #7617

Open
sennecools wants to merge 1 commit into
ItsNotRexed:mainfrom
sennecools:d3d12-trace-create-outcomes
Open

sennecools wants to merge 1 commit into
ItsNotRexed:mainfrom
sennecools:d3d12-trace-create-outcomes

Conversation

@sennecools

Copy link
Copy Markdown

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, #6569, #6257 (CreateHeap). Whichever lands second keeps the d3d12_trace::result wrap on its returns; #1846's CreateHeap1 delegates to CreateHeap.

What and why

--trace-d3d12 left no line for CreateCommandSignature, CreateQueryHeap and CreateHeap on 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, so boot_trace.py counted no failed call at that stop.

Every return of the three methods now goes through d3d12_trace::result, as CreateDescriptorHeap does. 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).

  • New ctest d3d12_trace_queue (check_d3d12_trace.py --queue on d3d12_com_test, which no ctest ran before): seven new lines, ok / unsupported / failed for a command signature, ok / failed for a query heap and a heap. It fails without the .cpp change ("Missing or out-of-order trace entry") and passes with it; exit 77 skips without a Vulkan device.
  • d3d12_com, d3d12_gcl8, d3d12_trace pass; d3d12_com_test exits 0 under LEONIDA_VK_VALIDATION=1.
  • No game files used.

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (no translator rule here)

…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.
@gabrielcruzg3

Copy link
Copy Markdown

Tested e8a3c08 (merged onto main 18559d50f) on NVIDIA GeForce RTX 3060 Ti (driver 621.01), Windows 11, MSVC 19.52 (VS 18), Ninja, Vulkan SDK 1.4.363.1: pass

  • ctest -R "^(d3d12_com|d3d12_trace|d3d12_trace_queue)$" (validation off): 3/3 passed (d3d12_com, d3d12_trace, d3d12_trace_queue).
  • ctest -R "^(d3d12_com|d3d12_trace|d3d12_trace_queue)$" (LEONIDA_VK_VALIDATION=1): 3/3 passed.

No game files used. AI-assisted testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants