d3d12: record the cause for translated compute stand-ins #209

Manually merged
github merged 1 commit from gh-pr/209/head into gh-pr/209/base 2026-11-26 06:38:30 +00:00
Owner

@⁠s3rius on GitHub · 2026-11-26 02:52 UTC · original
s3rius:d3d12/compute-stand-in-refusal → main · +20 −0 · 2 files · 1 commits · merged 2026-11-26 03:07 UTC

Summary

The pipeline-failures TSV showed "stand-in after translation (cause not recorded)" for translated compute pipelines that ended up as stand-ins. This change makes the runtime record a refusal note at each stand-in return point in runtime/d3d12/src/device/compute.rs — driver compile deadline on the large-compile deadline path (both the translated and original-bytes retry), and driver compile failed: 0x{code} when the driver rejects the translated pipeline — so the reason renders in the row's stages string (e.g. CS=<hash> CS.used=<key> CS.refused=driver compile failed: 0x80004005).

Verified on Lanes

A pull request is not merged until Lanes passes on a GPU. Run:

python tuxbox.py check
  • python tuxbox.py check passed on this branch
  • Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below

Lanes not needed

No Lanes scenario is added. The change only adds a cause to the failure record — it is not something Lanes can exercise, and the cause depends on the host driver's compile outcome rather than guest behaviour. Its coverage is the unit test above; the broader GPU verification is still outstanding.

GPU, driver and backend:

  • This changes code both vendors run, and the check passed on an AMD and an NVIDIA card (why). Otherwise, say which vendor still needs to run it:

Paste the summary printed at the end:

Summary
  passed   Build the shader compiler (0s)
  passed   Python tests (3s)
  passed   Shader compiler tests (0s)
  passed   DXBC tests (0s)
  passed   XG layout tests (1s)
  passed   D3D12 Windows typecheck (0s)
  passed   Build (23s)
  passed   Lanes and fixtures on the GPU (246s)
  passed   D3D12 regression controls (109s)
  passed   Shader translator on the GPU (247s)

Checks

CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of tuxbox-d3d12.

If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:

python tuxbox.py status > docs/RESULTS.md
python tuxbox.py status --svg docs/progress.svg
**@⁠s3rius** on GitHub · 2026-11-26 02:52 UTC · [original](https://github.com/brcly/TuxBox/pull/209) `s3rius:d3d12/compute-stand-in-refusal` → `main` · +20 −0 · 2 files · 1 commits · merged 2026-11-26 03:07 UTC ## Summary The pipeline-failures TSV showed "stand-in after translation (cause not recorded)" for translated compute pipelines that ended up as stand-ins. This change makes the runtime record a refusal note at each stand-in return point in `runtime/d3d12/src/device/compute.rs` — `driver compile deadline` on the large-compile deadline path (both the translated and original-bytes retry), and `driver compile failed: 0x{code}` when the driver rejects the translated pipeline — so the reason renders in the row's stages string (e.g. `CS=<hash> CS.used=<key> CS.refused=driver compile failed: 0x80004005`). ## Verified on Lanes A pull request is not merged until Lanes passes on a GPU. Run: ```sh python tuxbox.py check ``` - [x] `python tuxbox.py check` passed on this branch - [x] Changed or new behaviour is covered by a Lanes scenario, or the reason it cannot be is stated below ## Lanes not needed No Lanes scenario is added. The change only adds a cause to the failure record — it is not something Lanes can exercise, and the cause depends on the host driver's compile outcome rather than guest behaviour. Its coverage is the unit test above; the broader GPU verification is still outstanding. GPU, driver and backend: - [ ] This changes code both vendors run, and the check passed on an AMD and an NVIDIA card ([why](../CONTRIBUTING.md#amd-and-nvidia)). Otherwise, say which vendor still needs to run it: Paste the summary printed at the end: ```text Summary passed Build the shader compiler (0s) passed Python tests (3s) passed Shader compiler tests (0s) passed DXBC tests (0s) passed XG layout tests (1s) passed D3D12 Windows typecheck (0s) passed Build (23s) passed Lanes and fixtures on the GPU (246s) passed D3D12 regression controls (109s) passed Shader translator on the GPU (247s) ``` ## Checks CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of `tuxbox-d3d12`. If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files: ```sh python tuxbox.py status > docs/RESULTS.md python tuxbox.py status --svg docs/progress.svg ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:38:28 +00:00
github manually merged commit 6640e45733 into gh-pr/209/base 2026-11-26 06:38:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.