dlss: the ignored test asks the NVIDIA card, not the default one #2993

Open
fiestorra wants to merge 2 commits from upstream-pr/2993 into main
fiestorra commented 2026-12-01 22:42:21 +00:00 (Migrated from github.com)

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


dlss: the ignored test asks the NVIDIA card, not Windows' default one

dlss_starts_on_this_card made its device with D3D12CreateDevice(None, ..) - "Windows'
default card" - and on a machine with an integrated chip that is the chip. Measured on a
7800X3D + RTX 4090 (two adapters: the Radeon iGPU at 0x1002 and the 4090 at 0x10de):

before: DLSS available: false
after: the card: NVIDIA GeForce RTX 4090 (0x10de)
DLSS available: true

The false was the correct answer from an AMD card that was never asked to run DLSS, and
it was read - by me - as a statement about the 4090 for two rounds. The test now enumerates
DXGI's adapters, makes the device on the first NVIDIA one that accepts it, and prints the
card's name and vendor id; with no NVIDIA adapter it says so and falls back to the default
one, printed as such.

Nothing in the layer changes: the test is #[ignore]d and lives behind --features dlss.

Measured on main 1fff69129 + this change:

cargo test -p leonida-gpu --features dlss --lib -- --ignored dlss_starts --nocapture
the card: NVIDIA GeForce RTX 4090 (0x10de)
DLSS available: true
1 passed

Written with an AI assistant.

Also in this branch, on the layer side: dlss::init now checks the device's vendor first and, when it is not an NVIDIA card, logs why instead of returning the SDK's FeatureNotSupported:

DLSS asked for and this device is not an NVIDIA card: the upscale stays a stretch
(name the card: LEONIDA_ADAPTER, or the launcher's -Adapter)
  • because the card the layer takes can be the machine's integrated chip, and that answer is what I spent two rounds reading as a statement about an RTX 4090. Verified on the 4090: the test still reaches the SDK and says true.

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:5595946977 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:42:21Z. --- dlss: the ignored test asks the NVIDIA card, not Windows' default one `dlss_starts_on_this_card` made its device with `D3D12CreateDevice(None, ..)` - "Windows' default card" - and on a machine with an integrated chip that is the chip. Measured on a 7800X3D + RTX 4090 (two adapters: the Radeon iGPU at 0x1002 and the 4090 at 0x10de): before: DLSS available: false after: the card: NVIDIA GeForce RTX 4090 (0x10de) DLSS available: true The `false` was the correct answer from an AMD card that was never asked to run DLSS, and it was read - by me - as a statement about the 4090 for two rounds. The test now enumerates DXGI's adapters, makes the device on the first NVIDIA one that accepts it, and prints the card's name and vendor id; with no NVIDIA adapter it says so and falls back to the default one, printed as such. Nothing in the layer changes: the test is `#[ignore]`d and lives behind `--features dlss`. Measured on main 1fff69129 + this change: cargo test -p leonida-gpu --features dlss --lib -- --ignored dlss_starts --nocapture the card: NVIDIA GeForce RTX 4090 (0x10de) DLSS available: true 1 passed Written with an AI assistant. **Also in this branch, on the layer side**: `dlss::init` now checks the device's vendor first and, when it is not an NVIDIA card, logs *why* instead of returning the SDK's `FeatureNotSupported`: ``` DLSS asked for and this device is not an NVIDIA card: the upscale stays a stretch (name the card: LEONIDA_ADAPTER, or the launcher's -Adapter) ``` - because the card the layer takes can be the machine's integrated chip, and that answer is what I spent two rounds reading as a statement about an RTX 4090. **Verified on the 4090**: the test still reaches the SDK and says `true`. ## 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:47:02 +00:00 (Migrated from github.com)

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


Verified d41510a8f on Windows with a GeForce RTX 5070, driver 616.92. I set LEONIDA_DLSS_SDK and LEONIDA_DLSS_DIR to the x64 loader and release DLL from NVIDIA/DLSS at 9981c635, then ran:

cargo test --locked --profile diag -p leonida-gpu --features dlss --lib -- --ignored dlss_starts --nocapture

the card: NVIDIA GeForce RTX 5070 (0x10de)
DLSS available: true

One test passed. This confirms explicit NVIDIA selection and SDK initialization on a second RTX model. This host lists one physical GPU plus virtual display adapters, so the mixed AMD/NVIDIA and no-NVIDIA fallback paths remain outside this run. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328325770 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7328325770). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T22:47:02Z. --- Verified d41510a8f on Windows with a GeForce RTX 5070, driver 616.92. I set LEONIDA_DLSS_SDK and LEONIDA_DLSS_DIR to the x64 loader and release DLL from NVIDIA/DLSS at 9981c635, then ran: cargo test --locked --profile diag -p leonida-gpu --features dlss --lib -- --ignored dlss_starts --nocapture the card: NVIDIA GeForce RTX 5070 (0x10de) DLSS available: true One test passed. This confirms explicit NVIDIA selection and SDK initialization on a second RTX model. This host lists one physical GPU plus virtual display adapters, so the mixed AMD/NVIDIA and no-NVIDIA fallback paths remain outside this run. Codex-assisted.
fiestorra commented 2026-12-01 22:58:13 +00:00 (Migrated from github.com)

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


Thanks for verifying it on a second card - that is the piece I could not get here.

the card: NVIDIA GeForce RTX 5070 (0x10de) / DLSS available: true on driver 616.92, against my RTX 4090 on 621.24: two models, two drivers, both start DLSS when the test asks the NVIDIA adapter. That is the second card the finding in #2570 was missing, and it also settles the older claim: the FeatureNotSupported I had been quoting was the machine's Radeon iGPU answering a question about DLSS it was never able to run.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328569679 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7328569679). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-01T22:58:13Z. --- **Thanks for verifying it on a second card - that is the piece I could not get here.** `the card: NVIDIA GeForce RTX 5070 (0x10de)` / `DLSS available: true` on driver 616.92, against my RTX 4090 on 621.24: **two models, two drivers, both start DLSS when the test asks the NVIDIA adapter.** **That is the second card the finding in #2570 was missing**, and it also settles the older claim: the `FeatureNotSupported` I had been quoting was the machine's Radeon iGPU answering a question about DLSS it was never able to run. **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
andrew-ai commented 2026-12-01 23:06:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by andrew-ai on 2026-12-01T23:06:58Z.


Verified the new runtime vendor guard at ddc10507d, using separate empty temporary directories for the two runs and the same NVIDIA SDK files.

  • RTX 5070 (0x10de), driver 616.92: the stock ignored test reported DLSS available: true and created the leonida-ngx data directory.
  • Microsoft WARP (0x1414, confirmed from the device LUID): a temporary crate test called the unchanged init() directly. It returned None and left the data directory absent, confirming the early exit before SDK setup.

Both passed. The PR description still says the change is confined to the ignored test. This revision also changes runtime initialization. In particular, places::nvidia returns false on a DXGI lookup error as well as a confirmed non-NVIDIA vendor; the new guard suppresses SDK initialization in both cases. The lookup-error path was not exercised. Codex-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7328837438 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7328837438). Originally posted by [andrew-ai](https://github.com/andrew-ai) on 2026-12-01T23:06:58Z. --- Verified the new runtime vendor guard at ddc10507d, using separate empty temporary directories for the two runs and the same NVIDIA SDK files. * RTX 5070 (0x10de), driver 616.92: the stock ignored test reported DLSS available: true and created the leonida-ngx data directory. * Microsoft WARP (0x1414, confirmed from the device LUID): a temporary crate test called the unchanged init() directly. It returned None and left the data directory absent, confirming the early exit before SDK setup. Both passed. The PR description still says the change is confined to the ignored test. This revision also changes runtime initialization. In particular, places::nvidia returns false on a DXGI lookup error as well as a confirmed non-NVIDIA vendor; the new guard suppresses SDK initialization in both cases. The lookup-error path was not exercised. Codex-assisted.
ammonium231 commented 2026-12-02 12:17:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ammonium231 on 2026-12-02T12:17:04Z.


RTX 3090 / 621.47, ddc10507d (with bdc358b0f) merged onto main 9b4d71899: cargo test -p leonida-gpu --features dlss --lib -- --ignored dlss_starts --nocapture is 1 passed, 0 failed on both main and the merge. The merge prints "the card: NVIDIA GeForce RTX 3090 (0x10de)". Both runs: "DLSS available: true". Official NVIDIA/DLSS v310.9.16; nvngx_dlss.dll loaded.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345110154 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7345110154). Originally posted by [ammonium231](https://github.com/ammonium231) on 2026-12-02T12:17:04Z. --- RTX 3090 / 621.47, ddc10507d (with bdc358b0f) merged onto main 9b4d71899: cargo test -p leonida-gpu --features dlss --lib -- --ignored dlss_starts --nocapture is 1 passed, 0 failed on both main and the merge. The merge prints "the card: NVIDIA GeForce RTX 3090 (0x10de)". Both runs: "DLSS available: true". Official NVIDIA/DLSS v310.9.16; nvngx_dlss.dll loaded.
MoonEyes commented 2026-12-02 12:34:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:34:25Z.


This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345541696 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7345541696). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:34:25Z. --- This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
MoonEyes commented 2026-12-02 16:10:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T16:10:16Z.


RUN (in game, batch of five render-path pull requests), each head merged with git merge --no-ff onto main 3c106eb2f, in one build: #2993 ddc10507d, #2889 bc390c26f, #2851 cf8f7be78, #2980 12c14a999, #2994 fccce4485. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (48 samples) median 17.2, mean 17.3
Rendered fps, last 120 s median 17.3

For reference, the same machine and route rendered 13.3 to 16.7 fps today on main with single pull requests or other batches. These fps are a check that nothing fell over, not a measurement of a gain.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; free system memory median 2.5 GB; arrival in the world was driven by keys and not checked on pictures.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351547033 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7351547033). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T16:10:16Z. --- RUN (in game, batch of five render-path pull requests), each head merged with `git merge --no-ff` onto main `3c106eb2f`, in one build: #2993 `ddc10507d`, #2889 `bc390c26f`, #2851 `cf8f7be78`, #2980 `12c14a999`, #2994 `fccce4485`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (48 samples) | median 17.2, mean 17.3 | | Rendered fps, last 120 s | median 17.3 | For reference, the same machine and route rendered 13.3 to 16.7 fps today on main with single pull requests or other batches. These fps are a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; free system memory median 2.5 GB; arrival in the world was driven by keys and not checked on pictures. AI-assisted (Claude Code).
MoonEyes commented 2026-12-02 18:00:41 +00:00 (Migrated from github.com)

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


Triage of head ddc10507d (merge base 1fff69129, 334 commits behind; git merge-tree against current main 45dc41f95: no conflicts).

1 file: d3d12/crates/leonida-gpu/src/dlss.rs (+54/-2).

CI green on the head (6 checks).

Existing verification: Verified on this head on RTX 5070 and WARP (@andrew-ai), RTX 3090 (ghost), and in game in @MoonEyes's five-PR batch on 3c106eb2f (RTX 4060). Nothing pushed since.

This check: Test-only plus an init log line: the ignored dlss_starts_on_this_card now picks the NVIDIA adapter instead of D3D12CreateDevice(None, ..). The description has no claim ID from the coordination issue; add one for the merge checklist.

I did not build it: the crate is Windows-only (or the C++ runtime's Windows build), so no red/green was run here.

Verdict: ready (verified on three cards and in game; only the claim ID is missing).

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


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353858204 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7353858204). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:00:41Z. --- **Triage of head `ddc10507d` (merge base `1fff69129`, 334 commits behind; `git merge-tree` against current `main` `45dc41f95`: no conflicts).** 1 file: `d3d12/crates/leonida-gpu/src/dlss.rs` (+54/-2). CI green on the head (6 checks). **Existing verification:** Verified on this head on RTX 5070 and WARP (@andrew-ai), RTX 3090 (ghost), and in game in @MoonEyes's five-PR batch on `3c106eb2f` (RTX 4060). Nothing pushed since. **This check:** Test-only plus an init log line: the ignored `dlss_starts_on_this_card` now picks the NVIDIA adapter instead of `D3D12CreateDevice(None, ..)`. The description has no claim ID from the coordination issue; add one for the merge checklist. I did not build it: the crate is Windows-only (or the C++ runtime's Windows build), so no red/green was run here. **Verdict: ready** (verified on three cards and in game; only the claim ID is missing). 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:24:06 +00:00 (Migrated from github.com)

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


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:7354518896 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2993#issuecomment-7354518896). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T18:24:06Z. --- 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/2993:upstream-pr/2993'
git switch 'upstream-pr/2993'

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