[PR #2312] runtime: include HRESULT in D3D12 traces #2317

Open
opened 2026-11-26 21:20:48 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2312
Author: @ZroIsHere
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: diagnostics/d3d12-trace-hresult


📝 Commits (1)

  • 6f37726 runtime: include HRESULT in D3D12 traces

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 runtime/shims/d3d12_trace.h (+9 -1)

📄 Description

--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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2312 **Author:** [@ZroIsHere](https://github.com/ZroIsHere) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `diagnostics/d3d12-trace-hresult` --- ### 📝 Commits (1) - [`6f37726`](https://github.com/ubiquitarianism/leonida/commit/6f377261fda66b42110d4b72aece5bd3368fec74) runtime: include HRESULT in D3D12 traces ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_trace.h` (+9 -1) </details> ### 📄 Description `--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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2317
No description provided.