[pr-fix][frame-generation][dlss][NVIDIA] Use RGBA8 for the combined DLSS probe back buffer #177

Manually merged
TrustNo1 merged 1 commit from tyr0nsur/Darner:codex/combined-fg-backbuffer into main 2026-12-04 03:25:30 +00:00
Contributor

Contributor role (optional)

  • Fluxer ID:

What it changes

The combined DLSS diagnostic was feeding the FP16 Super Resolution result to the compositor and creating an FP16 swap-chain back buffer from the scene format. On an RTX 4060, the Streamline proxy then displayed one frame per input with 2× selected and status zero. NVIDIA documents a DLSS-G format limitation for FP16/scRGB. Streamline DLSS-G integration guide

The diagnostic now requests an RGBA8 composed back buffer. Super Resolution retains its FP16 output for the reference readback and the HUD-less tag. The host uses an explicit composed format when composing. Failure to compose that output fails the diagnostic. The regular presentation call sites still derive the back-buffer format from the scene.

How it was tested

  • Tested 6d6596c3842ccd74ba468b6d89a5ffe99f2a434f, based on 57dea7f2367c4e902b8ef507f90536564b670b04.

  • Synthetic D3D12 checks used Windows 11 Pro build 26300, RTX 4060 8 GB, NVIDIA driver 621.40, signed Streamline 2.14.16, and Rust 1.98.1. The window was focused for every measured present in the table. Both experimental runs used the same executable, DLSS Quality, 1280×720 render input, a 1920×1080 output, and FG requested at 2×.

    Condition Swap-chain format SDK frames / measured presents DXGI present delta
    Base control R16G16B16A16_FLOAT 50/50 50
    Only the composed output changed R8G8B8A8_UNORM 100/50 103
    Final implementation R8G8B8A8_UNORM 100/50 102
  • A temporary unit-test harness called the same combined_check used by the CLI. Built with cargo --config profile.test.debug=0 test --locked -j 1 -p darner-gpu --lib --no-run. The candidate passed the steady and seven lifecycle phases, including off/on, resizing from 1920×1080 to 1440×810 and back, and recreation. All five enabled lifecycle phases reported 100 SDK frames for 50 input presents. The final FP16 SR readback passed at both resolutions.

  • The negative control with DARNER_CHECK_SKIP_EVALUATE=1 failed the reference readback with an invalid RGB pixel (NaN), as expected.

  • Passed cargo clippy --locked -p darner-gpu --all-targets --all-features -- -D warnings. cargo test --locked -p darner-gpu --lib passed with the streamline:: (61 tests) and compose:: (1 test) filters. cargo run --locked --package xtask -- policy checked 553 files.

  • Coverage is synthetic. Gameplay, other GPUs, HDR output and generated-image fidelity were outside these checks.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #47 and #48 also edit combined probe support. #159 also edits the host presentation and submission paths. #139 and #143 touch the host presentation path. No PR for the same diagnostic format issue was found.
## Contributor role (optional) - Fluxer ID: ## What it changes The combined DLSS diagnostic was feeding the FP16 Super Resolution result to the compositor and creating an FP16 swap-chain back buffer from the scene format. On an RTX 4060, the Streamline proxy then displayed one frame per input with 2× selected and status zero. NVIDIA documents a DLSS-G format limitation for FP16/scRGB. [Streamline DLSS-G integration guide](https://github.com/NVIDIA-RTX/Streamline/blob/main/docs/ProgrammingGuideDLSS_G.md#110-dlss-g-and-hdr) The diagnostic now requests an RGBA8 composed back buffer. Super Resolution retains its FP16 output for the reference readback and the HUD-less tag. The host uses an explicit composed format when composing. Failure to compose that output fails the diagnostic. The regular presentation call sites still derive the back-buffer format from the scene. ## How it was tested - Tested `6d6596c3842ccd74ba468b6d89a5ffe99f2a434f`, based on `57dea7f2367c4e902b8ef507f90536564b670b04`. - Synthetic D3D12 checks used Windows 11 Pro build 26300, RTX 4060 8 GB, NVIDIA driver 621.40, signed Streamline 2.14.16, and Rust 1.98.1. The window was focused for every measured present in the table. Both experimental runs used the same executable, DLSS Quality, 1280×720 render input, a 1920×1080 output, and FG requested at 2×. | Condition | Swap-chain format | SDK frames / measured presents | DXGI present delta | |---|---|---:|---:| | Base control | R16G16B16A16_FLOAT | 50/50 | 50 | | Only the composed output changed | R8G8B8A8_UNORM | 100/50 | 103 | | Final implementation | R8G8B8A8_UNORM | 100/50 | 102 | - A temporary unit-test harness called the same `combined_check` used by the CLI. Built with `cargo --config profile.test.debug=0 test --locked -j 1 -p darner-gpu --lib --no-run`. The candidate passed the steady and seven lifecycle phases, including off/on, resizing from 1920×1080 to 1440×810 and back, and recreation. All five enabled lifecycle phases reported 100 SDK frames for 50 input presents. The final FP16 SR readback passed at both resolutions. - The negative control with `DARNER_CHECK_SKIP_EVALUATE=1` failed the reference readback with an invalid RGB pixel (NaN), as expected. - Passed `cargo clippy --locked -p darner-gpu --all-targets --all-features -- -D warnings`. `cargo test --locked -p darner-gpu --lib` passed with the `streamline::` (61 tests) and `compose::` (1 test) filters. `cargo run --locked --package xtask -- policy` checked 553 files. - Coverage is synthetic. Gameplay, other GPUs, HDR output and generated-image fidelity were outside these checks. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #47 and #48 also edit combined probe support. #159 also edits the host presentation and submission paths. #139 and #143 touch the host presentation path. No PR for the same diagnostic format issue was found.
First-time contributor

Confirmed on a second card, an RTX 4070 Ti SUPER 16 GB (driver 617.14, Windows 11 build 28000, i5-13600KF). I ran the stock combined DLSS diagnostic twice per build in separate processes with DLSS Quality, 1280×720 input, 1920×1080 output and FG 2×. The same signed Streamline 2.14.16 libraries were used throughout.

Build Measured application presents Frames reported by NVIDIA DXGI present counter delta FG validation
Parent 57dea7f236, FP16 back buffer 50 50 50 Failed twice
PR 6d6596c384, RGBA8 back buffer 50 100 102 Passed twice

Each steady run retained focus for all 50 measured inputs. Both builds reported SDK status zero and passed the FP16 Super Resolution reference readback. The run log confirmed DXGI format 10 on the parent and 28 on the PR.

The candidate also passed all seven lifecycle phases (350/350 inputs focused). Each of the five FG-on phases reported 100 SDK frames from 50 inputs. Both FG-off phases advanced the DXGI counter by 50 and left the FG SDK count at zero. Resize to 1440×810, resize back and swap-chain recreation passed.

Command: darner upscaler-check --validate-framegen --combined --output 1920x1080 --frames 60 --focus-wait 8. The lifecycle run added --lifecycle. These are counts from the synthetic diagnostic. Gameplay FPS, physical scanout and the visual quality of generated frames were outside this test.

Confirmed on a second card, an RTX 4070 Ti SUPER 16 GB (driver 617.14, Windows 11 build 28000, i5-13600KF). I ran the stock combined DLSS diagnostic twice per build in separate processes with DLSS Quality, 1280×720 input, 1920×1080 output and FG 2×. The same signed Streamline 2.14.16 libraries were used throughout. | Build | Measured application presents | Frames reported by NVIDIA | DXGI present counter delta | FG validation | |---|---:|---:|---:|---| | Parent `57dea7f236`, FP16 back buffer | 50 | 50 | 50 | Failed twice | | PR `6d6596c384`, RGBA8 back buffer | 50 | 100 | 102 | Passed twice | Each steady run retained focus for all 50 measured inputs. Both builds reported SDK status zero and passed the FP16 Super Resolution reference readback. The run log confirmed DXGI format 10 on the parent and 28 on the PR. The candidate also passed all seven lifecycle phases (350/350 inputs focused). Each of the five FG-on phases reported 100 SDK frames from 50 inputs. Both FG-off phases advanced the DXGI counter by 50 and left the FG SDK count at zero. Resize to 1440×810, resize back and swap-chain recreation passed. Command: `darner upscaler-check --validate-framegen --combined --output 1920x1080 --frames 60 --focus-wait 8`. The lifecycle run added `--lifecycle`. These are counts from the synthetic diagnostic. Gameplay FPS, physical scanout and the visual quality of generated frames were outside this test.
TrustNo1 manually merged commit 4f346b1bd6 into main 2026-12-04 03:25:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!177
No description provided.