Route DLSS app presents through Streamline once #4033

Closed
github-bot wants to merge 1 commit from github-bot/gh-4033 into main AGit
Owner

@⁠masteraapjes on GitHub · 2026-11-30 14:59 UTC · original
masteraapjes:codex/submit-streamline-common-present → main · +160 −76 · 6 files · 1 commits · closed without merging

What it changes

When DLSS is ready, upgrade the final app-facing swap chain for Streamline common-present bookkeeping. Preserve VICTORY_STREAMLINE_PRESENT=0 and an existing DLSS-G proxy; FidelityFX keeps its original AMD swap chain. Remove the experimental inner-factory hook so generated display frames do not also advance app-present bookkeeping.

SDK 2.14.16 can overwrite the wrapped Present HRESULT. Synchronous and worker common-proxy routes therefore omit ALLOW_TEARING and query device loss at the actual call site. Other masked statuses remain a limitation; the conservative tearing policy may affect pacing, VRR or FPS.

Rebuilt independently on upstream main 5fabb46eaf6ed8771321787f8871051abde69b9b to resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained.

How it was tested

Windows, pinned Rust 1.98.1. Tested head: 2edea2aea7fa0906230a1e34aee3678d7dd4329f.

  • cargo test --locked -j 2 -p victory-gpu --lib --features diagnostics common_present -- --test-threads=1: 2 passed.
  • cargo test --locked -j 2 -p victory-gpu --lib --features diagnostics common_proxy_and_refresh_pacing_do_not_request_tearing -- --test-threads=1: 1 passed.
  • Both scoped strict GPU Clippy commands ran and stopped solely on the five unchanged upstream errors listed below:
    • cargo clippy --locked -p victory-gpu --all-targets -- -D warnings
    • cargo clippy --locked -p victory-gpu --all-targets --all-features -- -D warnings
  • target\debug\xtask.exe policy: 464 files passed. git diff --check passed.

Current upstream CI blocker, independently reproduced on unmodified main 5fabb46e: both cargo clippy --workspace --all-targets --locked -- -D warnings and cargo clippy --workspace --all-targets --all-features --locked -- -D warnings exit 101 with five errors in host/font.rs:213/260, host/menu.rs:667 and host/panel.rs:602/668. Existing #4680 addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI check job passed.

The three tests are pure policy checks. Current SDK validation remains pending for synchronous, PRESENT_ASIDE and PRESENT_QUEUE routes, resize/shutdown, active FSR interpolation with DLSS, and singly proxied DLSS-G. No fresh gameplay, performance or device-loss recovery result is claimed. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included.

Checked for overlap

  • Rechecked current main and targeted open-PR searches alongside the earlier overlap review. Related #1335 and #3863 concern tag extents and frame-generation grace; neither supplies this final-chain common-present route. Allocation work overlapping #1391 is excluded. #1988 supplies the own-queue presentation route this patch also handles.
**@⁠masteraapjes** on GitHub · 2026-11-30 14:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4033) `masteraapjes:codex/submit-streamline-common-present` → `main` · +160 −76 · 6 files · 1 commits · closed without merging ## What it changes When DLSS is ready, upgrade the final app-facing swap chain for Streamline common-present bookkeeping. Preserve `VICTORY_STREAMLINE_PRESENT=0` and an existing DLSS-G proxy; FidelityFX keeps its original AMD swap chain. Remove the experimental inner-factory hook so generated display frames do not also advance app-present bookkeeping. SDK 2.14.16 can overwrite the wrapped Present HRESULT. Synchronous and worker common-proxy routes therefore omit ALLOW_TEARING and query device loss at the actual call site. Other masked statuses remain a limitation; the conservative tearing policy may affect pacing, VRR or FPS. Rebuilt independently on upstream main `5fabb46eaf6ed8771321787f8871051abde69b9b` to resolve the conflict after upstream history changed. Obsolete shared CI commits have been removed from the PR diff. Current upstream changes are retained. ## How it was tested Windows, pinned Rust 1.98.1. Tested head: `2edea2aea7fa0906230a1e34aee3678d7dd4329f`. - `cargo test --locked -j 2 -p victory-gpu --lib --features diagnostics common_present -- --test-threads=1`: 2 passed. - `cargo test --locked -j 2 -p victory-gpu --lib --features diagnostics common_proxy_and_refresh_pacing_do_not_request_tearing -- --test-threads=1`: 1 passed. - Both scoped strict GPU Clippy commands ran and stopped solely on the five unchanged upstream errors listed below: - `cargo clippy --locked -p victory-gpu --all-targets -- -D warnings` - `cargo clippy --locked -p victory-gpu --all-targets --all-features -- -D warnings` - `target\debug\xtask.exe policy`: 464 files passed. `git diff --check` passed. Current upstream CI blocker, independently reproduced on unmodified main `5fabb46e`: both `cargo clippy --workspace --all-targets --locked -- -D warnings` and `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` exit 101 with five errors in `host/font.rs:213/260`, `host/menu.rs:667` and `host/panel.rs:602/668`. Existing [#4680](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4680) addresses these. No unrelated fixes or lint suppressions are carried here. This is not a claim that the latest CI `check` job passed. The three tests are pure policy checks. Current SDK validation remains pending for synchronous, PRESENT_ASIDE and PRESENT_QUEUE routes, resize/shutdown, active FSR interpolation with DLSS, and singly proxied DLSS-G. No fresh gameplay, performance or device-loss recovery result is claimed. The full workspace test suite was not rerun for this conflict-resolution update. No game data is included. ## Checked for overlap - [x] Rechecked current main and targeted open-PR searches alongside the earlier overlap review. Related #1335 and #3863 concern tag extents and frame-generation grace; neither supplies this final-chain common-present route. Allocation work overlapping #1391 is excluded. #1988 supplies the own-queue presentation route this patch also handles.
Upgrade the final app-facing swap chain once when DLSS is ready, including FidelityFX and own-queue chains, with an explicit opt-out. Apply tearing and device-loss safeguards at both actual Present sites; preserve native AMD configuration identity and existing DLSS-G routing.

Production library check, three focused pure policy tests and staged asset policy pass. Latest SDK worker/resize hardware validation is still required before merging this draft; the temporary baseline test-fixture workaround is not included.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 14:59:30 +00:00
github-bot changed title from [pr-fix] Route DLSS app presents through Streamline once to Route DLSS app presents through Streamline once 2026-11-30 15:05:15 +00:00
Author
Owner

@⁠Aniseto on GitHub · 2026-11-30 15:16 UTC · original

Attempted the three focused policy tests at 517504b2 on an NVIDIA Blackwell desktop part; they could not run at this head.

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders), driver 32.0.16.2140 (621.40)
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: Rust 1.98.1 (48a229cea 2026-09-01, pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug

Results

  • VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_present_is_automatic_with_an_explicit_opt_out -- --test-threads=1: exit 101, error[E0061] twice. The same error occurs for common_present_wraps_active_dlss_once and common_proxy_and_refresh_pacing_do_not_request_tearing.
  • Both errors are in unchanged baseline GPU fixtures at host.rs:20353 and :20379: card_pass(...) is called with 5 arguments but takes 6 (the new [u32; 3] argument). The victory-gpu lib test target does not compile, so no test result was emitted.

What this adds
The author describes the same two fixture call sites and a temporary fixture-only workaround that was restored before staging. This run confirms the blocker on a second NVIDIA host: the three policy tests are currently unreachable without editing test fixtures, which I did not do. No title or Streamline presentation path was exercised.

Not tested
The three focused tests, a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: Hy4 flash Free - ran the commands above on this machine and wrote this report; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-30 15:16 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4033#issuecomment-7282734370) Attempted the three focused policy tests at `517504b2` on an NVIDIA Blackwell desktop part; they could not run at this head. **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders), driver 32.0.16.2140 (621.40) - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: Rust 1.98.1 (48a229cea 2026-09-01, pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug **Results** - `VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_present_is_automatic_with_an_explicit_opt_out -- --test-threads=1`: exit 101, `error[E0061]` twice. The same error occurs for `common_present_wraps_active_dlss_once` and `common_proxy_and_refresh_pacing_do_not_request_tearing`. - Both errors are in unchanged baseline GPU fixtures at `host.rs:20353` and `:20379`: `card_pass(...)` is called with 5 arguments but takes 6 (the new `[u32; 3]` argument). The `victory-gpu` lib test target does not compile, so no test result was emitted. **What this adds** The author describes the same two fixture call sites and a temporary fixture-only workaround that was restored before staging. This run confirms the blocker on a second NVIDIA host: the three policy tests are currently unreachable without editing test fixtures, which I did not do. No title or Streamline presentation path was exercised. **Not tested** The three focused tests, a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **Hy4 flash Free** - ran the commands above on this machine and wrote this report; no game data was used.
(cherry picked from commit d0597eba19)
card_pass took the compare's capture (7addcfc7, VICTORY_LAND_CAPTURE) and
its two test callers still passed five arguments, so the library's tests
did not build. They pass [0; 3], no capture, as the other callers outside
the capture's mode do.

The thin recorder's bindings_record_no_work names every call by what it
records; begin_query and end_query (471d05c4, #3715) record into the query
heap and were in no list. They join the calls that record work.

The shader key's test lists four VICTORY_ORACLE_* names the translator no
longer reads since the differential fuzzer left (a1fe8350); it failed on
the first of them.

(cherry picked from commit d8e409cd45)
Author
Owner

@⁠Aniseto on GitHub · 2026-11-30 15:49 UTC · original

New head aa549d1b: the three focused policy tests now run and pass here. This is a new response in the same thread; my earlier report at 517504b2 (#4033) recorded exit 101 from two unchanged card_pass fixtures. That comment is not edited.

System

  • GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders), driver 32.0.16.2140 (621.40)
  • CPU: Intel Core i5-12400F, 64 GB RAM
  • OS: Windows 11 Pro build 26200 x64
  • Toolchain: Rust 1.98.1 (48a229cea 2026-09-01, pinned by rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5
  • Build: debug, detached worktree at the exact PR head, no local patches

Results

  • VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_present_is_automatic_with_an_explicit_opt_out -- --test-threads=1: 1 passed, 0 failed, 0 ignored, 1184 filtered out (exit 0)
  • VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_present_wraps_active_dlss_once -- --test-threads=1: 1 passed, 0 failed, 0 ignored, 1184 filtered out (exit 0)
  • VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_proxy_and_refresh_pacing_do_not_request_tearing -- --test-threads=1: 1 passed, 0 failed, 0 ignored, 1184 filtered out (exit 0)

What this adds
The two card_pass call sites that blocked the lib test target at 517504b2 are no longer a blocker at this head, so all three policy tests execute on a second NVIDIA host: one Blackwell desktop part with 16 GB of VRAM, driver 621.40 and Windows 11 build 26200. Each test ran alone with one thread. These are pure policy tests; no title or Streamline presentation path was exercised.

Not tested
The full workspace suite, a retail title, a paired smoke run, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, the SDK worker/resize/shutdown validation still listed as pending in the PR, game data.

AI-assisted (OpenCode), model: Hy4 flash Free - ran the commands above at the exact head on this machine and wrote this report; no game data was used.

**@⁠Aniseto** on GitHub · 2026-11-30 15:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4033#issuecomment-7283654916) New head `aa549d1b`: the three focused policy tests now run and pass here. This is a new response in the same thread; my earlier report at `517504b2` (https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4033) recorded exit 101 from two unchanged `card_pass` fixtures. That comment is not edited. **System** - GPU: NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders), driver 32.0.16.2140 (621.40) - CPU: Intel Core i5-12400F, 64 GB RAM - OS: Windows 11 Pro build 26200 x64 - Toolchain: Rust 1.98.1 (48a229cea 2026-09-01, pinned by `rust-toolchain.toml`), MSVC 14.44.35207, DXC 1.9.2609.5 - Build: debug, detached worktree at the exact PR head, no local patches **Results** - `VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_present_is_automatic_with_an_explicit_opt_out -- --test-threads=1`: 1 passed, 0 failed, 0 ignored, 1184 filtered out (exit 0) - `VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_present_wraps_active_dlss_once -- --test-threads=1`: 1 passed, 0 failed, 0 ignored, 1184 filtered out (exit 0) - `VICTORY_D3D12_ADAPTER=NVIDIA cargo test -p victory-gpu --lib common_proxy_and_refresh_pacing_do_not_request_tearing -- --test-threads=1`: 1 passed, 0 failed, 0 ignored, 1184 filtered out (exit 0) **What this adds** The two `card_pass` call sites that blocked the lib test target at `517504b2` are no longer a blocker at this head, so all three policy tests execute on a second NVIDIA host: one Blackwell desktop part with 16 GB of VRAM, driver 621.40 and Windows 11 build 26200. Each test ran alone with one thread. These are pure policy tests; no title or Streamline presentation path was exercised. **Not tested** The full workspace suite, a retail title, a paired smoke run, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, the SDK worker/resize/shutdown validation still listed as pending in the PR, game data. AI-assisted (OpenCode), model: **Hy4 flash Free** - ran the commands above at the exact head on this machine and wrote this report; no game data was used.
github-bot force-pushed github-bot/gh-4033 from 45ba1f5460 to 2edea2aea7 2026-12-01 13:38:12 +00:00 Compare
github-bot closed this pull request 2026-12-01 18:50:47 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:46 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4033#issuecomment-7321535268) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4033
No description provided.