[pr-fix][frame-generation][dlss][NVIDIA] Use RGBA8 for the combined DLSS probe back buffer #177
Loading…
Reference in a new issue
No description provided.
Delete branch "tyr0nsur/Darner:codex/combined-fg-backbuffer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
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 on57dea7f2367c4e902b8ef507f90536564b670b04.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×.
A temporary unit-test harness called the same
combined_checkused by the CLI. Built withcargo --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=1failed 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 --libpassed with thestreamline::(61 tests) andcompose::(1 test) filters.cargo run --locked --package xtask -- policychecked 553 files.Coverage is synthetic. Gameplay, other GPUs, HDR output and generated-image fidelity were outside these checks.
Checklist
main.docs/asset-policy.md.Checked for overlap
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.
57dea7f236, FP16 back buffer6d6596c384, RGBA8 back bufferEach 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.