Docs: XCL_D3D12_DIR names the folder containing D3D12Core.dll (NuGet bin\x64), and is searched alone #848

Open
github-bot wants to merge 2 commits from github-bot/gh-848 into main AGit
Owner

@⁠pickles976 on GitHub · 2026-11-24 06:41 UTC · original
pickles976:docs-agility-dir → main · +4 −1 · 1 files · 2 commits · open

What: README-only clarification reported-live in #595. %XCL_D3D12_DIR% must name the folder directly containing D3D12Core.dll — the unpacked NuGet root (bin\x64 is the real folder) silently guarantees the documented "point at it" fails, and because the override deliberately does not fall through (agility.rs:55), the user experience is "the env var is broken", exactly as tested and reported.

Tested: docs-only change; the asserted behavior is the shipped one (candidates() env short-circuit, unit-covered in agility_tests.rs:105).
Not tested: N/A (no code).
AI use: none beyond my usual static reading of our source.

**@⁠pickles976** on GitHub · 2026-11-24 06:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/848) `pickles976:docs-agility-dir` → `main` · +4 −1 · 1 files · 2 commits · open **What:** README-only clarification reported-live in #595. `%XCL_D3D12_DIR%` must name the folder **directly containing** `D3D12Core.dll` — the unpacked NuGet root (`bin\x64` is the real folder) silently guarantees the documented "point at it" fails, and because the override deliberately does not fall through (`agility.rs:55`), the user experience is "the env var is broken", exactly as tested and reported. **Tested:** docs-only change; the asserted behavior is the shipped one (`candidates()` env short-circuit, unit-covered in `agility_tests.rs:105`). **Not tested:** N/A (no code). **AI use:** none beyond my usual static reading of our source.
Ambiguity reported in #595: the NuGet package's DLL lives in bin\x64,
and the env override (by design) does not fall through, so pointing at
the unpacked root is a hard failure that reads as "the env var is broken".
teidenzero's correction on the PR: in Microsoft.Direct3D.D3D12 1.620.2
the DLL is at build\\native\\bin\\x64\\D3D12Core.dll. Naming the package
also keeps it from being misread as the DXC bin\\x64 one line below.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:34:24 +00:00
Author
Owner

@⁠teidenzero on GitHub · 2026-11-24 14:37 UTC · original

Checked on Windows 10, where this is visible: the inbox D3D12 stops at SM 6.5, so a wrong XCL_D3D12_DIR makes the GPU tests skip (on Windows 11 the inbox runtime hides it).

One correction: in the NuGet package (Microsoft.Direct3D.D3D12 1.620.2) the DLL is at build\native\bin\x64\D3D12Core.dll. There is no bin\x64 at the package root, so "for an unpacked NuGet package that is bin\x64" points at a folder that does not exist. Suggested wording: "for an unpacked NuGet package that is build\native\bin\x64, not the package root".

Runs on main 930e8b4, cargo test -p xcl --lib gpu::recomp::tests::gpu_clamp_and_omod_per_instruction -- --exact --nocapture, with a valid SDK also in %LOCALAPPDATA%\XCL\D3D12\:

XCL_D3D12_DIR result
the package root skipped: no SM 6.6 (Agility SDK unavailable: XCL_D3D12_DIR=<root> has no D3D12Core.dll)
<root>\bin\x64 skipped, the same message (the folder does not exist)
<root>\build\native\bin\x64 passes
not set passes (%LOCALAPPDATA%\XCL\D3D12\)

The "searched alone" part holds: a wrong override does not fall back to the valid SDK in %LOCALAPPDATA%.

Machine: NVIDIA GeForce RTX 4090, driver 621.24; Windows 10 Pro 22H2 build 19045.6466; Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug.

AI use: Claude Code (Claude Opus 5.5) ran the checks and drafted this comment.

**@⁠teidenzero** on GitHub · 2026-11-24 14:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/848#issuecomment-7134668333) Checked on Windows 10, where this is visible: the inbox D3D12 stops at SM 6.5, so a wrong `XCL_D3D12_DIR` makes the GPU tests skip (on Windows 11 the inbox runtime hides it). One correction: in the NuGet package (`Microsoft.Direct3D.D3D12` 1.620.2) the DLL is at `build\native\bin\x64\D3D12Core.dll`. There is no `bin\x64` at the package root, so "for an unpacked NuGet package that is `bin\x64`" points at a folder that does not exist. Suggested wording: "for an unpacked NuGet package that is `build\native\bin\x64`, not the package root". Runs on `main` `930e8b4`, `cargo test -p xcl --lib gpu::recomp::tests::gpu_clamp_and_omod_per_instruction -- --exact --nocapture`, with a valid SDK also in `%LOCALAPPDATA%\XCL\D3D12\`: | `XCL_D3D12_DIR` | result | |---|---| | the package root | skipped: `no SM 6.6 (Agility SDK unavailable: XCL_D3D12_DIR=<root> has no D3D12Core.dll)` | | `<root>\bin\x64` | skipped, the same message (the folder does not exist) | | `<root>\build\native\bin\x64` | passes | | not set | passes (`%LOCALAPPDATA%\XCL\D3D12\`) | The "searched alone" part holds: a wrong override does not fall back to the valid SDK in `%LOCALAPPDATA%`. Machine: NVIDIA GeForce RTX 4090, driver 621.24; Windows 10 Pro 22H2 build 19045.6466; Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug. AI use: Claude Code (Claude Opus 5.5) ran the checks and drafted this comment.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 14:43 UTC · original

Corrected per @⁠teidenzero — the path is now build\\native\\bin\\x64 with the package name spelled out (Microsoft.Direct3D.D3D12), which also keeps it from being confused with the DXC bin\\x64 in the very next bullet. Thanks for the Win10-vs-Win11 note too: it explains why the wrong-path failure is visible to some testers and invisible to others, which is worth having in the README's implicit shadow.

**@⁠pickles976** on GitHub · 2026-11-24 14:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/848#issuecomment-7134833537) Corrected per @⁠teidenzero — the path is now `build\\native\\bin\\x64` with the package name spelled out (`Microsoft.Direct3D.D3D12`), which also keeps it from being confused with the DXC `bin\\x64` in the very next bullet. Thanks for the Win10-vs-Win11 note too: it explains why the wrong-path failure is visible to some testers and invisible to others, which is worth having in the README's implicit shadow.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 10:15 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 10:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/848#issuecomment-7159454059) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/848/head:github-bot/gh-848'
git switch 'github-bot/gh-848'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-848'
git switch 'github-bot/gh-848'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-848'
git switch 'github-bot/gh-848'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-848'
git switch 'main'
git merge --squash 'github-bot/gh-848'
git switch 'main'
git merge --ff-only 'github-bot/gh-848'
git switch 'main'
git merge 'github-bot/gh-848'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.