WIP: runtime: include HRESULT in D3D12 traces #2312

Closed
leonida/mandy
ZroIsHere wants to merge 0 commits from diagnostics/d3d12-trace-hresult into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

ZroIsHere commented 2026-11-26 13:44:46 +00:00

--trace-d3d12 currently records failed calls without their HRESULT, making it hard to distinguish unsupported operations from invalid arguments and other failures. Include the hexadecimal HRESULT on failed calls. Keep E_NOTIMPL classified as unsupported and successful calls as ok.

Validation: the Windows/MSVC RelWithDebInfo gta6rt build passed. A retail run with translated shaders recorded four ID3D12Device2::CreatePipelineState failures as hr=0x80070057 (E_INVALIDARG), which the old trace reduced to the generic word failed. No tests were run.

`--trace-d3d12` currently records failed calls without their HRESULT, making it hard to distinguish unsupported operations from invalid arguments and other failures. Include the hexadecimal HRESULT on failed calls. Keep `E_NOTIMPL` classified as `unsupported` and successful calls as `ok`. Validation: the Windows/MSVC RelWithDebInfo `gta6rt` build passed. A retail run with translated shaders recorded four `ID3D12Device2::CreatePipelineState` failures as `hr=0x80070057` (`E_INVALIDARG`), which the old trace reduced to the generic word `failed`. No tests were run.
lixonik reviewed 2026-11-26 17:57:31 +00:00
lixonik left a comment
No description provided.
The exact PR head built with MSVC on Windows 11. The `d3d12_trace` CTest failed at entry #10 because its event parser rejects the new failure suffix. Details inline. AI-assisted. **`runtime/shims/d3d12_trace.h` line 40:** > [P2] Update the trace parser alongside the new failure suffix. > > `ctest -R '^d3d12_trace$'` fails on Windows 11 at entry #10 with `ID3D12GraphicsCommandList::Close failed (hr=0x80004005)`. `runtime/test/check_d3d12_trace.py` full-matches a bare `failed` outcome and rejects that event before checking the sequence. Can the parser accept the HRESULT field and still compare the same event kind?
MoonEyes commented 2026-11-27 22:43:20 +00:00

Hi @ZroIsHere, thanks for this pull request.

CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post claiming: <ID> there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one.

The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time.

Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough.

AI-assisted (Claude Code, Claude Opus 5.5).

Hi @ZroIsHere, thanks for this pull request. CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post `claiming: <ID>` there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one. The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time. Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:43:41 +00:00

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.
Sign in to join this conversation.
No description provided.