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

Open
pickles976 wants to merge 2 commits from upstream-pr/848 into main
pickles976 commented 2026-11-24 06:41:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T06:41:54Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:5467427968 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/848). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T06:41:54Z. --- **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.
teidenzero commented 2026-11-24 15:05:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by teidenzero on 2026-11-24T14:37:02Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7134668333 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/848#issuecomment-7134668333). Originally posted by [teidenzero](https://github.com/teidenzero) on 2026-11-24T14:37:02Z. --- 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.
pickles976 commented 2026-11-24 15:06:01 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-24T14:43:06Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7134833537 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/848#issuecomment-7134833537). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-24T14:43:06Z. --- 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.
DavidM1911 commented 2026-11-25 11:08:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:15:46Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7159454059 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/848#issuecomment-7159454059). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T10:15:46Z. --- 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!
github-actions[bot] commented 2026-11-29 20:40:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:40:46Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262271620 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/848#issuecomment-7262271620). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:40:46Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:18:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:18:19Z.


Triage (#1607) – head 935cc76

No open or merged PR makes the same change. The text matches main's gpu/agility.rs: candidates() returns only %XCL_D3D12_DIR% when it is set and non-empty, and probe_dir reads <dir>\D3D12Core.dll directly, so the folder must contain the DLL (NuGet build\native\bin\x64). No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300594562 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/848#issuecomment-7300594562). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:18:19Z. --- **Triage (#1607)** – head 935cc76 No open or merged PR makes the same change. The text matches main's `gpu/agility.rs`: `candidates()` returns only `%XCL_D3D12_DIR%` when it is set and non-empty, and `probe_dir` reads `<dir>\D3D12Core.dll` directly, so the folder must contain the DLL (NuGet `build\native\bin\x64`). No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/848:upstream-pr/848'
git switch 'upstream-pr/848'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/848'
git switch 'upstream-pr/848'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/848'
git switch 'upstream-pr/848'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/848'
git switch 'main'
git merge --squash 'upstream-pr/848'
git switch 'main'
git merge --ff-only 'upstream-pr/848'
git switch 'main'
git merge 'upstream-pr/848'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
xcl-dev/xcl!842
No description provided.