gpu(streamline): skip DLSS frame generation when camera constants are rejected #190

Manually merged
github merged 1 commit from gh-pr/190/head into gh-pr/190/base 2026-12-01 20:17:09 +00:00
Owner

@⁠Androtim on GitHub · 2026-11-30 03:10 UTC · original
Androtim:feat/iter187-streamline-dlssg-constants-guard → main · +23 −4 · 1 files · 1 commits · merged 2026-11-30 07:34 UTC

Summary

  • Extract streamline::dlssg_inputs_ready(constants_result, tag_result) so present_begins only enables DLSS Frame Generation when both slSetConstants and slSetTagForFrame return success (0).
  • Preserve distinct constants_result logging on slSetConstants failure instead of reporting code == 0 purely from slSetTagForFrame.
  • Added unit test streamline::tests::dlssg_requires_accepted_camera_constants_and_tags.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (311 files ok)
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu streamline:: -- --test-threads=1 (14 passed; 0 failed)
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings
**@⁠Androtim** on GitHub · 2026-11-30 03:10 UTC · [original](https://github.com/Androtim/MiniVI/pull/190) `Androtim:feat/iter187-streamline-dlssg-constants-guard` → `main` · +23 −4 · 1 files · 1 commits · merged 2026-11-30 07:34 UTC ## Summary - Extract `streamline::dlssg_inputs_ready(constants_result, tag_result)` so `present_begins` only enables DLSS Frame Generation when both `slSetConstants` and `slSetTagForFrame` return success (`0`). - Preserve distinct `constants_result` logging on `slSetConstants` failure instead of reporting `code == 0` purely from `slSetTagForFrame`. - Added unit test `streamline::tests::dlssg_requires_accepted_camera_constants_and_tags`. ## Verification - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` (`311 files ok`) - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu streamline:: -- --test-threads=1` (`14 passed; 0 failed`) - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:17:07 +00:00
github manually merged commit 36ca44ed4a into gh-pr/190/base 2026-12-01 20:17:09 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 04:02 UTC · original

Automated triage for the maintainers (not an approval).

Verdict: merge-candidate · CI (check): passing

Review Summary

This PR fixes a variable-shadowing bug in present_begins (crates/victory-gpu/src/streamline.rs) where the code returned by sl.set_constants (slSetConstants) was shadowed by the code returned by sl.set_tag_for_frame (slSetTagForFrame), causing DLSS Frame Generation eligibility to ignore rejected camera constants.

Findings

  • Correctness: Renaming the first result to constants_result and gating on via dlssg_inputs_ready(constants_result, code) ensures both slSetConstants and slSetTagForFrame must return 0 before enabling DLSS Frame Generation. When constants_result != 0, on evaluates to false, which cleanly transitions calls.framegen_on to abi::DLSSG_OFF on the existing options-update path without altering the happy path (constants_result == 0).
  • Diagnostics & Tests: Distinct warning logging for slSetConstants is preserved, and the new unit test streamline::tests::dlssg_requires_accepted_camera_constants_and_tags covers the success and single-failure cases.
  • CI & Scope: CI is passing and the change is minimal, well-scoped, and does not require a real-GPU smoke test before merging.

(Automated triage review; not a formal maintainer approval.)


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 04:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/190#issuecomment-7268421058) <!-- minivi-triage v1 head=36ca44ed4a5525e2b6b1fd14ce813396e8b023c0 verdict=merge-candidate ci=passing at=2026-11-30T04:03:28Z --> Automated triage for the maintainers (not an approval). **Verdict:** `merge-candidate` · **CI (`check`):** `passing` ### Review Summary This PR fixes a variable-shadowing bug in `present_begins` (`crates/victory-gpu/src/streamline.rs`) where the `code` returned by `sl.set_constants` (`slSetConstants`) was shadowed by the `code` returned by `sl.set_tag_for_frame` (`slSetTagForFrame`), causing DLSS Frame Generation eligibility to ignore rejected camera constants. ### Findings - **Correctness**: Renaming the first result to `constants_result` and gating `on` via `dlssg_inputs_ready(constants_result, code)` ensures both `slSetConstants` and `slSetTagForFrame` must return `0` before enabling DLSS Frame Generation. When `constants_result != 0`, `on` evaluates to `false`, which cleanly transitions `calls.framegen_on` to `abi::DLSSG_OFF` on the existing options-update path without altering the happy path (`constants_result == 0`). - **Diagnostics & Tests**: Distinct warning logging for `slSetConstants` is preserved, and the new unit test `streamline::tests::dlssg_requires_accepted_camera_constants_and_tags` covers the success and single-failure cases. - **CI & Scope**: CI is passing and the change is minimal, well-scoped, and does not require a real-GPU smoke test before merging. *(Automated triage review; not a formal maintainer approval.)* --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 07:34 UTC · original

Already triaged as triage: merge candidate with passing CI (clearing queue past automated AI Studio spend cap). Squash-merging now.

**@⁠Androtim** on GitHub · 2026-11-30 07:34 UTC · [original](https://github.com/Androtim/MiniVI/pull/190#issuecomment-7271878239) Already triaged as `triage: merge candidate` with passing CI (clearing queue past automated AI Studio spend cap). Squash-merging now.
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/Androtim--MiniVI!190
No description provided.