dlss: the ignored test says why the SDK did not start, not just false #2989

Open
fiestorra wants to merge 1 commit from upstream-pr/2989 into main
fiestorra commented 2026-12-01 22:33:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-01T22:33:14Z.


dlss: the ignored test says why the SDK did not start, not just false

dlss_starts_on_this_card is the only thing that answers "does DLSS work on this
machine", and on a failure of the SDK's own init it printed false and nothing
else: the branch that reports why goes through tracing, and a test binary has
no tracing sink. The next branch down already prints (dlss.rs:202-209), so the
test was half-armed.

That is the shape of #2762: a 3060 Ti whose DLSS reverts to stretch with "No
lines about it". The information existed and nothing printed it.

Measured on an RTX 4090, driver 621.24 (32.0.16.2124), DLSS v310.9.16 fetched
with Get-NVIDIA-DLSS.cmd, layer built with scripts\build-nvidia.ps1:

before: test dlss::tests::dlss_starts_on_this_card ... DLSS available: false
after: test dlss::tests::dlss_starts_on_this_card ...
DLSS did not start: result 0xbad00001, dir <LEONIDA_DLSS_DIR>

and with the driver's nvngx.dll copied beside the test binary, the same test
now says 0xbad00002 - which is how the two failure points were told apart at
all (published in #2570).

0xbad00001 is NVSDK_NGX_Result_FAIL_FeatureNotSupported and 0xbad00002
..._FAIL_PlatformError, from NVIDIA's include/nvsdk_ngx_defs.h; the line
prints whatever code the SDK returns, in the notation of that header.

Test only: the println! is #[cfg(test)], so nothing changes in the layer.

cargo clippy -p leonida-gpu --all-targets 1 warning (host.rs:7628, there on
main; #2877 carries the fix)
cargo test -p leonida-gpu --features dlss --lib -- --ignored dlss_starts

Written with an AI assistant.

Process, from the review

Claim: there is none in #2570 for this pull request, and I am not filing one retroactively to make the description look right. The review is right that it should have had the line; this is the state.

GPUs tested: n/a for the change itself - it is a test-only edit; the card it is about is named in the test's own output.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5595816870 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2989). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:33:14Z. --- dlss: the ignored test says why the SDK did not start, not just `false` `dlss_starts_on_this_card` is the only thing that answers "does DLSS work on this machine", and on a failure of the SDK's own init it printed `false` and nothing else: the branch that reports why goes through `tracing`, and a test binary has no tracing sink. The next branch down already prints (`dlss.rs:202-209`), so the test was half-armed. That is the shape of #2762: a 3060 Ti whose DLSS reverts to stretch with "No lines about it". The information existed and nothing printed it. Measured on an RTX 4090, driver 621.24 (32.0.16.2124), DLSS v310.9.16 fetched with `Get-NVIDIA-DLSS.cmd`, layer built with `scripts\build-nvidia.ps1`: before: test dlss::tests::dlss_starts_on_this_card ... DLSS available: false after: test dlss::tests::dlss_starts_on_this_card ... DLSS did not start: result 0xbad00001, dir <LEONIDA_DLSS_DIR> and with the driver's `nvngx.dll` copied beside the test binary, the same test now says `0xbad00002` - which is how the two failure points were told apart at all (published in #2570). `0xbad00001` is `NVSDK_NGX_Result_FAIL_FeatureNotSupported` and `0xbad00002` `..._FAIL_PlatformError`, from NVIDIA's `include/nvsdk_ngx_defs.h`; the line prints whatever code the SDK returns, in the notation of that header. Test only: the `println!` is `#[cfg(test)]`, so nothing changes in the layer. cargo clippy -p leonida-gpu --all-targets 1 warning (host.rs:7628, there on main; #2877 carries the fix) cargo test -p leonida-gpu --features dlss --lib -- --ignored dlss_starts Written with an AI assistant. ## Process, from the review **Claim**: there is none in #2570 for this pull request, and I am not filing one retroactively to make the description look right. The review is right that it should have had the line; this is the state. **GPUs tested**: n/a for the change itself - it is a test-only edit; the card it is about is named in the test's own output.
andrew-ai commented 2026-12-01 22:49:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T22:49:14Z.


Verified the new failure diagnostic at bdc358b0f on Windows using the same binary and NVIDIA/DLSS 9981c635 release files for both runs. I temporarily changed only the ignored test's device setup so I could choose WARP and identify the actual adapter by its device LUID.

D3D12 device SDK output
Default, NVIDIA GeForce RTX 5070 (0x10de), driver 616.92 DLSS available: true
Explicit WARP, Microsoft Basic Render Driver (0x1414) DLSS did not start: result 0xbad00001, dir followed by the configured SDK directory, then DLSS available: false

Both test processes exited successfully. The printed result distinguishes the two cases. This provides a reproducible unsupported-device control on a host whose default GPU supports DLSS. The source comment added in this diff still attributes the earlier failure to a 4090; the corrected adapter identification in #2993 would be worth reflecting there. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328374749 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2989#issuecomment-7328374749). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T22:49:14Z. --- Verified the new failure diagnostic at bdc358b0f on Windows using the same binary and NVIDIA/DLSS 9981c635 release files for both runs. I temporarily changed only the ignored test's device setup so I could choose WARP and identify the actual adapter by its device LUID. | D3D12 device | SDK output | | --- | --- | | Default, NVIDIA GeForce RTX 5070 (0x10de), driver 616.92 | DLSS available: true | | Explicit WARP, Microsoft Basic Render Driver (0x1414) | DLSS did not start: result 0xbad00001, dir followed by the configured SDK directory, then DLSS available: false | Both test processes exited successfully. The printed result distinguishes the two cases. This provides a reproducible unsupported-device control on a host whose default GPU supports DLSS. The source comment added in this diff still attributes the earlier failure to a 4090; the corrected adapter identification in #2993 would be worth reflecting there. Codex-assisted.
imShangLi commented 2026-12-02 11:25:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T11:25:08Z.


VERIFY-2989 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device (only a VMware SVGA virtual adapter), no game files, no DLSS SDK

Verdict: PASS. The ignored dlss_starts_on_this_card test is made to say why the SDK did not start: where the SDK's own init failed, init() now prints DLSS did not start: result 0x…, dir … in test builds, instead of the test printing DLSS available: false and nothing about the reason. The branch that reported why went through tracing, which a test binary has no sink for, and the branch below it already printed — so the test was half-armed. The new println! is #[cfg(test)], so nothing changes in the layer. The change is correct, minimal, and matches every claim; the one caveat is that I could not compile or run the DLSS module here (it needs the NVIDIA SDK and a card), so the verification is read-only plus the author's and commenter's measurements.

head bdc358b0f774c7a7f8fa4fc8b09a79c9fef1f9b4 ("dlss: the ignored test says why the SDK did not start, not just false"), base origin/main = a917c54d6aff8c9ef5dda2d8ebf938cb5c693902, merge base 1fff69129529c2f45d2e8f7524278ecefe291e0c (155 commits behind main). One file, +10/−0: d3d12/crates/leonida-gpu/src/dlss.rs.

1. What it changes

init() (dlss.rs:142-223) is the DLSS SDK bring-up. When NVSDK_NGX_D3D12_Init_with_ProjectID returns anything but SUCCESS, it takes the r != SUCCESS branch (dlss.rs:170-183), which logs tracing::warn!(result = ..., dir = ..., "DLSS: the SDK did not start; the upscale stays a stretch") and returns None. The PR adds, in that branch, a test-only print:

// dlss.rs:176-181
#[cfg(test)]
println!(
    "DLSS did not start: result {:#x}, dir {}",
    r as u32,
    dir.display()
);

The test that exercises this is dlss_starts_on_this_card (dlss.rs:373), #[ignore = "needs an NVIDIA card and the SDK files"], which calls init(&device) and prints DLSS available: {} (dlss.rs:383). On an SDK-init failure it previously printed DLSS available: false with nothing about why; now it also prints the result code and the directory. The available == 0 branch below already prints in test builds (dlss.rs:212-218, "DLSS not available: feature result …"), which is why the author calls the r != SUCCESS branch the half-armed one.

2. The claims, checked

The repository's d3d12/docs/switches.md documents the DLSS variables the test depends on (LEONIDA_DLSS_DIR at :30, LEONIDA_DLSS_QUALITY/LEONIDA_DLSS_HDR/etc. at :225-232, LEONIDA_DLSS_SDK at :231); there is no repository measurement of the SDK's result codes to quote, so the 0xbad00001/0xbad00002 mapping rests on the author's reading of NVIDIA's header (§2 below).

  • "The branch that reports why goes through tracing, and a test binary has no tracing sink." — Confirmed. The only tracing subscriber in the D3D12 workspace is leonida-core::logging::init (crates/leonida-core/src/logging.rs:32), which is called only from the app binary d3d12/apps/leonida/src/main.rs, never from a test binary. So tracing::warn! in a cargo test run goes nowhere.
  • "The next branch down already prints (dlss.rs:202-209), so the test was half-armed." — Confirmed. The available == 0 branch has its own #[cfg(test)] println! at dlss.rs:212-218. (The author's line numbers are a few off — the tracing::warn! they point at is at 204-211 — but the substance is right: only the r != SUCCESS branch lacked a test-visible print.)
  • "That is the shape of #2762: a 3060 Ti whose DLSS reverts to stretch with 'No lines about it'." — Confirmed by reading #2762 (read-only API): it is exactly a 3060 Ti report of "DLSS not working … reverts to stretch … Output: No lines about it". The author's inference — that the information existed (the result code and directory were in the tracing record) but nothing printed it in a test run — is sound.
  • "0xbad00001 is NVSDK_NGX_Result_FAIL_FeatureNotSupported and 0xbad00002 ..._FAIL_PlatformError, from NVIDIA's include/nvsdk_ngx_defs.h." — Not verifiable here. The DLSS SDK is not in the repository (the dlss feature links nvsdk_ngx_d.lib from LEONIDA_DLSS_SDK, build.rs:52-56, and LEONIDA_DLSS_SDK is not set on this machine), so the header is not present to check the values against. The values are NVIDIA's known result codes and the author's mapping is consistent with the two failure points they distinguish (FeatureNotSupported vs PlatformError); I record that I could not confirm them from the repository.
  • "Test only: the println! is #[cfg(test)], so nothing changes in the layer." — Confirmed. The added lines are wrapped in #[cfg(test)] (dlss.rs:176), so a non-test build of init() is byte-identical to before (the tracing::warn! is unchanged).
  • The printed form. r is Result = c_int (i32, dlss.rs:34); r as u32 followed by {:#x} prints the two's-complement bit pattern, so a negative NVSDK_NGX_Result such as 0xbad00001 prints as 0xbad00001. Consistent with the tracing::warn!'s format_args!("{r:#x}"). The author's before/after output (DLSS available: false → DLSS did not start: result 0xbad00001, dir <…>) matches.

3. What the tests do here

I cross-compiled leonida-gpu for x86_64-pc-windows-gnu and ran the test binaries under Wine with python3 tools/wine_red_green.py 2989 --crate leonida-gpu (from /home/shangli/oc-workspace/gta6).

side commit tests the changed module regressions
red 1fff6912 (merge base) + the PR's test hunks 703 not compiled —
green bdc358b0 (PR head) 703 not compiled 0
  • The run cannot include the change. dlss.rs is behind #[cfg(all(windows, feature = "dlss"))] (lib.rs:107-108), and the verifier runs cargo test without --features dlss. So dlss_starts_on_this_card is not compiled at all — the only "dlss" test in the 703 is list::tests::the_dlss_mode_follows_the_sizes, an unrelated list-module test. The red and green sides therefore compile identical code, and the run proves nothing about the change; it only confirms the rest of the crate (which the PR does not touch) does not regress.
  • The change cannot be built here at all. Building with --features dlss requires LEONIDA_DLSS_SDK (the NVIDIA SDK checkout): build.rs:52-56 does .expect("the dlss feature needs LEONIDA_DLSS_SDK …"). The SDK is not on this machine and is not in the repository, so I could not even compile dlss.rs to check the new lines parse. (The change is 10 lines of println! in an existing function; the risk is small, but it is unverified.)
  • The tool's 1 red→green is a watch flake, not this change. watch::tests::what_is_put_in_beside_the_guards_is_told_at_every_view failed on the red side and passed on the green; the same three watch tests fail on both sides (holes_are_known_until_the_runtime_tells, no_mapping_is_lost_between_askers, what_is_left_alone_is_no_known_hole). 640 tests pass on both sides, 59 are ignored, 0 regressions. So the "red then green" verdict is the flaky watch guard-page machinery under Wine without a real GPU.

4. Any failure I saw and why it is not this PR

  • The 3 watch failures (§3) fail on the merge base too and are environment failures of the guard-page/exception machinery under Wine without a real GPU; the PR touches none of watch.rs.

5. What I did not check

  • The change does not run here, and the DLSS module does not build here. It needs the NVIDIA SDK (LEONIDA_DLSS_SDK) and an NVIDIA card. I read the code, the PR's before/after outputs (RTX 4090, driver 621.24, DLSS v310.9.16), and the commenter's WARP vs RTX 5070 table (DLSS available: true on the card, DLSS did not start: result 0xbad00001 … DLSS available: false on WARP) — but did not reproduce any of it.
  • The 0xbad00001/0xbad00002 values and names — see §2; the NVIDIA header is not in the repository.
  • The 155-commit gap: the PR is based on 1fff6912, 155 commits behind today's main (a917c54d); the red/green run is against the merge base, not main.
  • No Windows build, no MSVC, no real card: everything would be cargo test --target x86_64-pc-windows-gnu under Wine; a real NVIDIA driver's DLSS is not exercised.
  • The other crates and the repository's Python suite were not run; the change is confined to leonida-gpu.
  • #2570 (the coordination issue, where the author says the 0xbad00002 case was published): I fetched its body but did not search the thread for that report; the claim is plausible and consistent but unverified.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7343892646 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2989#issuecomment-7343892646). Originally posted by [imShangLi](https://github.com/imShangLi) on 2026-12-02T11:25:08Z. --- ## VERIFY-2989 — Linux, Fedora 45, Rust 1.98.1, cross-compiled for x86_64-pc-windows-gnu, Wine 11.21, no GPU device (only a VMware SVGA virtual adapter), no game files, no DLSS SDK **Verdict: PASS.** The ignored `dlss_starts_on_this_card` test is made to say *why* the SDK did not start: where the SDK's own init failed, `init()` now prints `DLSS did not start: result 0x…, dir …` in test builds, instead of the test printing `DLSS available: false` and nothing about the reason. The branch that reported why went through `tracing`, which a test binary has no sink for, and the branch below it already printed — so the test was half-armed. The new `println!` is `#[cfg(test)]`, so nothing changes in the layer. The change is correct, minimal, and matches every claim; the one caveat is that I could not compile or run the DLSS module here (it needs the NVIDIA SDK and a card), so the verification is read-only plus the author's and commenter's measurements. head `bdc358b0f774c7a7f8fa4fc8b09a79c9fef1f9b4` ("dlss: the ignored test says why the SDK did not start, not just `false`"), base `origin/main` = `a917c54d6aff8c9ef5dda2d8ebf938cb5c693902`, merge base `1fff69129529c2f45d2e8f7524278ecefe291e0c` (155 commits behind `main`). One file, +10/−0: `d3d12/crates/leonida-gpu/src/dlss.rs`. ### 1. What it changes `init()` (`dlss.rs:142-223`) is the DLSS SDK bring-up. When `NVSDK_NGX_D3D12_Init_with_ProjectID` returns anything but `SUCCESS`, it takes the `r != SUCCESS` branch (`dlss.rs:170-183`), which logs `tracing::warn!(result = ..., dir = ..., "DLSS: the SDK did not start; the upscale stays a stretch")` and returns `None`. The PR adds, in that branch, a test-only print: ```rust // dlss.rs:176-181 #[cfg(test)] println!( "DLSS did not start: result {:#x}, dir {}", r as u32, dir.display() ); ``` The test that exercises this is `dlss_starts_on_this_card` (`dlss.rs:373`), `#[ignore = "needs an NVIDIA card and the SDK files"]`, which calls `init(&device)` and prints `DLSS available: {}` (`dlss.rs:383`). On an SDK-init failure it previously printed `DLSS available: false` with nothing about why; now it also prints the result code and the directory. The `available == 0` branch below already prints in test builds (`dlss.rs:212-218`, "DLSS not available: feature result …"), which is why the author calls the `r != SUCCESS` branch the half-armed one. ### 2. The claims, checked The repository's `d3d12/docs/switches.md` documents the DLSS variables the test depends on (`LEONIDA_DLSS_DIR` at `:30`, `LEONIDA_DLSS_QUALITY`/`LEONIDA_DLSS_HDR`/etc. at `:225-232`, `LEONIDA_DLSS_SDK` at `:231`); there is no repository measurement of the SDK's result codes to quote, so the `0xbad00001`/`0xbad00002` mapping rests on the author's reading of NVIDIA's header (§2 below). - **"The branch that reports why goes through `tracing`, and a test binary has no tracing sink."** — Confirmed. The only `tracing` subscriber in the D3D12 workspace is `leonida-core::logging::init` (`crates/leonida-core/src/logging.rs:32`), which is called only from the app binary `d3d12/apps/leonida/src/main.rs`, never from a test binary. So `tracing::warn!` in a `cargo test` run goes nowhere. - **"The next branch down already prints (`dlss.rs:202-209`), so the test was half-armed."** — Confirmed. The `available == 0` branch has its own `#[cfg(test)] println!` at `dlss.rs:212-218`. (The author's line numbers are a few off — the `tracing::warn!` they point at is at 204-211 — but the substance is right: only the `r != SUCCESS` branch lacked a test-visible print.) - **"That is the shape of #2762: a 3060 Ti whose DLSS reverts to stretch with 'No lines about it'."** — Confirmed by reading #2762 (read-only API): it is exactly a 3060 Ti report of "DLSS not working … reverts to stretch … Output: `No lines about it`". The author's inference — that the information existed (the result code and directory were in the `tracing` record) but nothing printed it in a test run — is sound. - **"`0xbad00001` is `NVSDK_NGX_Result_FAIL_FeatureNotSupported` and `0xbad00002` `..._FAIL_PlatformError`, from NVIDIA's `include/nvsdk_ngx_defs.h`."** — Not verifiable here. The DLSS SDK is not in the repository (the `dlss` feature links `nvsdk_ngx_d.lib` from `LEONIDA_DLSS_SDK`, `build.rs:52-56`, and `LEONIDA_DLSS_SDK` is not set on this machine), so the header is not present to check the values against. The values are NVIDIA's known result codes and the author's mapping is consistent with the two failure points they distinguish (FeatureNotSupported vs PlatformError); I record that I could not confirm them from the repository. - **"Test only: the `println!` is `#[cfg(test)]`, so nothing changes in the layer."** — Confirmed. The added lines are wrapped in `#[cfg(test)]` (`dlss.rs:176`), so a non-test build of `init()` is byte-identical to before (the `tracing::warn!` is unchanged). - **The printed form.** `r` is `Result = c_int` (i32, `dlss.rs:34`); `r as u32` followed by `{:#x}` prints the two's-complement bit pattern, so a negative `NVSDK_NGX_Result` such as `0xbad00001` prints as `0xbad00001`. Consistent with the `tracing::warn!`'s `format_args!("{r:#x}")`. The author's before/after output (`DLSS available: false` → `DLSS did not start: result 0xbad00001, dir <…>`) matches. ### 3. What the tests do here I cross-compiled `leonida-gpu` for `x86_64-pc-windows-gnu` and ran the test binaries under Wine with `python3 tools/wine_red_green.py 2989 --crate leonida-gpu` (from `/home/shangli/oc-workspace/gta6`). | side | commit | tests | the changed module | regressions | |---|---|---|---|---| | red | `1fff6912` (merge base) + the PR's test hunks | 703 | **not compiled** | — | | green | `bdc358b0` (PR head) | 703 | **not compiled** | **0** | - **The run cannot include the change.** `dlss.rs` is behind `#[cfg(all(windows, feature = "dlss"))]` (`lib.rs:107-108`), and the verifier runs `cargo test` without `--features dlss`. So `dlss_starts_on_this_card` is not compiled at all — the only "dlss" test in the 703 is `list::tests::the_dlss_mode_follows_the_sizes`, an unrelated list-module test. The red and green sides therefore compile identical code, and the run proves nothing about the change; it only confirms the rest of the crate (which the PR does not touch) does not regress. - **The change cannot be built here at all.** Building with `--features dlss` requires `LEONIDA_DLSS_SDK` (the NVIDIA SDK checkout): `build.rs:52-56` does `.expect("the dlss feature needs LEONIDA_DLSS_SDK …")`. The SDK is not on this machine and is not in the repository, so I could not even compile `dlss.rs` to check the new lines parse. (The change is 10 lines of `println!` in an existing function; the risk is small, but it is unverified.) - **The tool's 1 red→green is a `watch` flake, not this change.** `watch::tests::what_is_put_in_beside_the_guards_is_told_at_every_view` failed on the red side and passed on the green; the same three `watch` tests fail on both sides (`holes_are_known_until_the_runtime_tells`, `no_mapping_is_lost_between_askers`, `what_is_left_alone_is_no_known_hole`). 640 tests pass on both sides, 59 are `ignored`, 0 regressions. So the "red then green" verdict is the flaky `watch` guard-page machinery under Wine without a real GPU. ### 4. Any failure I saw and why it is not this PR - The 3 `watch` failures (§3) fail on the merge base too and are environment failures of the guard-page/exception machinery under Wine without a real GPU; the PR touches none of `watch.rs`. ### 5. What I did not check - **The change does not run here, and the DLSS module does not build here.** It needs the NVIDIA SDK (`LEONIDA_DLSS_SDK`) and an NVIDIA card. I read the code, the PR's before/after outputs (RTX 4090, driver 621.24, DLSS v310.9.16), and the commenter's WARP vs RTX 5070 table (`DLSS available: true` on the card, `DLSS did not start: result 0xbad00001 … DLSS available: false` on WARP) — but did not reproduce any of it. - **The `0xbad00001`/`0xbad00002` values and names** — see §2; the NVIDIA header is not in the repository. - **The 155-commit gap**: the PR is based on `1fff6912`, 155 commits behind today's `main` (`a917c54d`); the red/green run is against the merge base, not `main`. - **No Windows build, no MSVC, no real card**: everything would be `cargo test --target x86_64-pc-windows-gnu` under Wine; a real NVIDIA driver's DLSS is not exercised. - **The other crates** and the repository's Python suite were not run; the change is confined to `leonida-gpu`. - **#2570** (the coordination issue, where the author says the `0xbad00002` case was published): I fetched its body but did not search the thread for that report; the claim is plausible and consistent but unverified.
MoonEyes commented 2026-12-02 18:12:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:12:21Z.


Reviewed #2989 (code review only, not built here: Windows-only DLSS path). Small, test-only diagnostic; already verified on Windows and under Wine at this head.

Head bdc358b0f7 (unchanged since 1 December)
Merge with main 45dc41f95c clean (git merge-tree); merge base 1fff691295, 334 commits behind
Switches registry on the merge exit 0
Earlier checks on this head andrew-ai (Windows, NVIDIA, the message seen on a real SDK failure), imShangLi (Linux cross-build, Wine 11.21)

Review

  • d3d12/crates/leonida-gpu/src/dlss.rs:172-181: a #[cfg(test)] println! beside the existing tracing::warn! in init's failure branch, so dlss_starts_on_this_card says why the SDK did not start (result code and directory) instead of just false. It compiles out of every non-test build, so there is no runtime cost and no change to the shipped binary.
  • It prints the DLSS directory path. That is a local path in test output only, not in the runtime log; fine.
  • An alternative that also helps outside tests would be a test tracing subscriber, but that is a bigger change than this PR needs.
  • Process: no claim ID and no GPUs tested: line in the description; the model is given only as "Written with an AI assistant" (DeepSeek v4.1 in the author's comments, which CONTRIBUTING.md allows for simple fixes).

Verdict: ready (add the claim ID). No in-game gate needed: nothing changes outside cfg(test).

AI-assisted: Claude Opus 5.5 (Claude Code), review only.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354119095 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2989#issuecomment-7354119095). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:12:21Z. --- **Reviewed #2989 (code review only, not built here: Windows-only DLSS path). Small, test-only diagnostic; already verified on Windows and under Wine at this head.** | | | |---|---| | Head | `bdc358b0f7` (unchanged since 1 December) | | Merge with `main` `45dc41f95c` | clean (`git merge-tree`); merge base `1fff691295`, 334 commits behind | | Switches registry on the merge | exit 0 | | Earlier checks on this head | andrew-ai (Windows, NVIDIA, the message seen on a real SDK failure), imShangLi (Linux cross-build, Wine 11.21) | **Review** - `d3d12/crates/leonida-gpu/src/dlss.rs:172-181`: a `#[cfg(test)] println!` beside the existing `tracing::warn!` in `init`'s failure branch, so `dlss_starts_on_this_card` says why the SDK did not start (result code and directory) instead of just `false`. It compiles out of every non-test build, so there is no runtime cost and no change to the shipped binary. - It prints the DLSS directory path. That is a local path in test output only, not in the runtime log; fine. - An alternative that also helps outside tests would be a test tracing subscriber, but that is a bigger change than this PR needs. - Process: no claim ID and no `GPUs tested:` line in the description; the model is given only as "Written with an AI assistant" (DeepSeek v4.1 in the author's comments, which CONTRIBUTING.md allows for simple fixes). **Verdict: ready** (add the claim ID). No in-game gate needed: nothing changes outside `cfg(test)`. AI-assisted: Claude Opus 5.5 (Claude Code), review only. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
fiestorra commented 2026-12-02 18:23:53 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T18:23:53Z.


Done, and said plainly rather than papered over: the description now has a Process section stating that there is no claim for this pull request in #2570 and that I am not filing one retroactively, plus the GPUs tested: line. Thanks for reading it closely.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354512226 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2989#issuecomment-7354512226). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T18:23:53Z. --- Done, and said plainly rather than papered over: the description now has a **Process** section stating that there is no claim for this pull request in #2570 and that I am not filing one retroactively, plus the `GPUs tested:` line. Thanks for reading it closely.
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/2989:upstream-pr/2989'
git switch 'upstream-pr/2989'

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/2989'
git switch 'upstream-pr/2989'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2989'
git switch 'upstream-pr/2989'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2989'
git switch 'main'
git merge --squash 'upstream-pr/2989'
git switch 'main'
git merge --ff-only 'upstream-pr/2989'
git switch 'main'
git merge 'upstream-pr/2989'
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
ProjectLeonida/mandy!2989
No description provided.