Linux desktop: HDR10 swap chain, fullscreen monitor choice, output resolution #205

Open
github-bot wants to merge 1 commit from github-bot/gh-205 into main AGit
Owner

@⁠HeroOfOlympus on GitHub · 2026-12-02 16:25 UTC · original
HeroOfOlympus:hdr10-display → main · +884 −358 · 5 files · 1 commits · open

VICTORY_HDR=1 presents in HDR10 (ST.2084/BT.2020) when the display supports it and gives the title its luminance; VICTORY_FULLSCREEN_MONITOR picks the monitor for borderless fullscreen. Tested on Linux (Proton, Wayland, KDE) at 2560x1440.

🤖 Generated with Claude Code

**@⁠HeroOfOlympus** on GitHub · 2026-12-02 16:25 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/205) `HeroOfOlympus:hdr10-display` → `main` · +884 −358 · 5 files · 1 commits · open `VICTORY_HDR=1` presents in HDR10 (ST.2084/BT.2020) when the display supports it and gives the title its luminance; `VICTORY_FULLSCREEN_MONITOR` picks the monitor for borderless fullscreen. Tested on Linux (Proton, Wayland, KDE) at 2560x1440. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
VICTORY_HDR=1 presents in HDR10 (ST.2084, BT.2020) when the display supports it
and reports its luminance to the title; VICTORY_FULLSCREEN_MONITOR picks the
monitor for borderless fullscreen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 17:04:26 +00:00
Author
Owner

@⁠Luxuride on GitHub · 2026-12-04 12:01 UTC · original

The HDR half is already in main and better integrated: crates/victory-hle/src/modules/display.rs:60-115 and crates/victory-gpu/src/host.rs:7635-7725 do hdr_space(format) + CheckColorSpaceSupport/SetColorSpace1/SetHDRMetaData with VICTORY_HDR_NITS. This branch redefines VICTORY_HDR=1 to mean "detect from the display", which is a second meaning for a documented name, and host.rs:7179 adds an undocumented KLBF_HDR alias on top. Detection is also likely dead under Wine, where IDXGIOutput6::GetDesc1 usually reports …_GAMMA22_NONE_P709 even on an HDR monitor, so hdr_luminance() returns None while the display module is still told HDR is on — the double-gamma case main's format check exists to avoid.

The interface-plane deletion is a regression dressed as a resolution fix: it removes ui_plane_patches() and leaves a no-op stub at resolution.rs:692 while docs/SETTINGS.md:30 and run.conf.default:64 still advertise VICTORY_UI_PLANE. Delete-a-feature PRs need the title and both docs to say so.

The piece worth having is monitor selection alone — monitor_spec()/select_monitor/fit_rect (lifecycle.rs:217-360, ~60 real lines) with VICTORY_FULLSCREEN_MONITOR in run.conf.default and docs/SETTINGS.md. Send that by itself and it lands quickly.

**@⁠Luxuride** on GitHub · 2026-12-04 12:01 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/205#issuecomment-7410866532) The HDR half is already in `main` and better integrated: `crates/victory-hle/src/modules/display.rs:60-115` and `crates/victory-gpu/src/host.rs:7635-7725` do `hdr_space(format)` + `CheckColorSpaceSupport`/`SetColorSpace1`/`SetHDRMetaData` with `VICTORY_HDR_NITS`. This branch redefines `VICTORY_HDR=1` to mean "detect from the display", which is a second meaning for a documented name, and `host.rs:7179` adds an undocumented `KLBF_HDR` alias on top. Detection is also likely dead under Wine, where `IDXGIOutput6::GetDesc1` usually reports `…_GAMMA22_NONE_P709` even on an HDR monitor, so `hdr_luminance()` returns `None` while the display module is still told HDR is on — the double-gamma case main's format check exists to avoid. The interface-plane deletion is a regression dressed as a resolution fix: it removes `ui_plane_patches()` and leaves a no-op stub at `resolution.rs:692` while `docs/SETTINGS.md:30` and `run.conf.default:64` still advertise `VICTORY_UI_PLANE`. Delete-a-feature PRs need the title and both docs to say so. The piece worth having is monitor selection alone — `monitor_spec()`/`select_monitor`/`fit_rect` (`lifecycle.rs:217-360`, ~60 real lines) with `VICTORY_FULLSCREEN_MONITOR` in `run.conf.default` and `docs/SETTINGS.md`. Send that by itself and it lands quickly.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-hle/src/modules/display.rs
  • crates/victory-loader/src/resolution.rs
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.
git fetch -u origin '+refs/pull/205/head:github-bot/gh-205'
git switch 'github-bot/gh-205'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-205'
git switch 'github-bot/gh-205'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-205'
git switch 'github-bot/gh-205'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-205'
git switch 'main'
git merge --squash 'github-bot/gh-205'
git switch 'main'
git merge --ff-only 'github-bot/gh-205'
git switch 'main'
git merge 'github-bot/gh-205'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.