HDR10 output on HDR displays (F1: HDR) #1727
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1727
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1727"
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?
@paales on GitHub · 2026-11-28 23:46 UTC · original
paales:hdr10-output→main· +498 −40 · 11 files · 12 commits · openWritten by 🤖:
What it changes
The title asks for HDR with
XDisplayTryEnableHdrMode. On main the layer answers "disabled", and the title renders SDR.With HDR on in Windows for the primary display (the F1 item
HDR (NEEDS HDR IN WINDOWS)is ON by default; OFF orVICTORY_HDR=0turns it off):XDisplayTryEnableHdrModereturns enabled, with the minimum, peak and full-frame luminance of the display fromIDXGIOutput6::GetDesc1.R10G10B10A2_UNORMinDXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020.R8G8B8A8_UNORM, sRGB) and its scene as the second plane (2560x1440R10G10B10A2_UNORM, HDR10). The composer puts the HDR10 plane at the bottom. The output takes the size of the HDR10 scene plane, the picture size that is set, and the composer scales the interface plane into it.VICTORY_HDR_PAPER_WHITE, else the SDR content brightness that Windows has for the primary display (DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL), else 203 nits. The layer reads it once at the start and logs where it came from.present_placedpresents again only when it drops an interface plane. With HDR the composer draws frames with one plane too, so a second present without an interface plane would go to the composer again.DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709. The title's own HDR or SDR picture follows at its next start.BUFFER_HUDLESS_COLOR): it has the back buffer's size and format. The interface and the layer's overlays stay in place in generated frames. With SDR output after HDR they get no interface tags.With HDR off in Windows, or with
VICTORY_HDR=0, the output does not change.How it was tested
HDR mode: disabled (SDR presentation).829188emerged in: the same log lines, and DLSS frame generation shows its frames. With the Windows slider at 212 nits:HDR: paper white nits=212.0 from="the SDR content brightness in Windows".presenting to a window width=2560 height=1440 format=24), and the F1 menu stays in place with DLSS frame generation.cargo testpassed for the crates it touches: yes, the tests ofhost::menu(with--test-threads=1),host::panel,queueanddisplay. Thedisplaytests that check the SDR answer setVICTORY_HDR=0, as the PC that runs them can show HDR.cargo clippy --workspace --all-targets: no warnings in the changed lines. With--all-features, main does not compile at829188e(host.rs,SubmissionTiming).41adb551merged in:cargo test -p victory-gpu --libforhost::menu,host::panelandqueue(--test-threads=1) and the HDR tests, andcargo test -p victory-hle --lib display: passed.Checked for overlap
41adb551merged in.@barrenechea on GitHub · 2026-11-28 23:59 UTC · original
@trustno1-code please consider this one!
github-bot referenced this pull request2026-11-29 13:06:17 +00:00
@falc410 on GitHub · 2026-12-01 00:08 UTC · original · edited 2026-12-01 00:47 UTC
tested it locally and looks great! wish there was an upvote mechanic.
@paales I had my local AI help me with the merge conflicts. Leaving the info here for anyone else running into this problem. Below is written by Qwen3.8-Flash-Next
Merged onto today's main and played: three conflicts, all of them keep both sides
I merged this branch into
7d93ee07(today's main) as2f7a2cde, built it withcargo build --release --locked -p victoryand played it.Setup: RTX 5070 Ti, Windows 11, Series X, 2560x1440 ultrawide, DLSS Quality with DLSS frame generation 2x, HDR on in Windows.
The merge conflicts:
git merge --no-commit --no-ff <this branch>on7d93ee07leaves exactly three, with the markers atcrates/victory-gpu/src/host.rs:15228,host.rs:16849andcrates/victory-hle/src/modules/lifecycle.rs:171. In the first two both sides can simply be kept; main had moved underneath.1.
host.rs:15228, wherefn colour_spaceis added. main put its newmod present_aside { ... }(588 lines) at exactly that spot, and the single}after the conflict block closes that module on main's side. Keeping only one}there leaves the module open and the file does not parse, so the module closes first and this function follows it:2.
host.rs:16849, in the presenter. main inserted itspresent_asidewait in front of the composer rebuild check this PR extends. Keep both, with the newoutput()comparison inside main'sis_none_or:3.
lifecycle.rs:171, the only place that needs new code.suspend_and_resumecallsroutines()andconstrained(), which main replaced with theROUTINESandCONSTRAINEDstatics. The registration:and this is what the middle of the helper becomes against main's API (one at a time, suspend with a deadline, then resume with the title's routines first):
Checked the way CI does, on that merge onto
7d93ee07:cargo clippy --workspace --all-targets --locked -- -D warningsis clean andcargo test --workspace --lockedpasses (victory-gpu alone: 1133 passed, 0 failed). I did not see a CI run for this PR, so those are hand runs.@paales on GitHub · 2026-12-01 02:57 UTC · original
Written by 🤖:
main5fabb46eis merged into this branch (3b5f5580). Four conflicts, both sides kept in each:host.rs: main'spresent_asidemodule closes first, thencolour_spacefollows; the wait for the present handed to its thread comes before the composer check, which also compares the HDR output.lifecycle.rs:RegisterAppStateChangeNotificationregisters throughROUTINES;suspend_and_resumesuspends and resumes throughROUTINESandCONSTRAINED.font.rs,menu.rs: the HDR white and the F1 HDR item on main's lines.Checked on an RTX 5070 Ti in HDR full screen: the swap chain is in colour space 12 (HDR10), paper white 212 nits from the Windows SDR content brightness, the HDR10 scene plane under the 3840x2160 interface plane, the picture right. Local clippy reports 5 errors in lines that
mainhas too (font.rstext,menu.rs:674,panel.rs:602and:668); the merge adds none.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.