Skip to content

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

Merged
brcly merged 1 commit into
brcly:mainfrom
s3rius:d3d12/compute-stand-in-refusal
Nov 26, 2026
Merged

brcly merged 1 commit into
brcly:mainfrom
s3rius:d3d12/compute-stand-in-refusal

Conversation

@s3rius

@s3rius s3rius commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
@brcly
brcly merged commit 27b90b0 into brcly:main Nov 26, 2026
2 checks passed
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