[pr-fix][rendering] Detect HDR on the display adapter in hybrid GPU systems #157
Loading…
Reference in a new issue
No description provided.
Delete branch "Bing_Yanchi/Darner:codex/fix-hdr-display-output"
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?
Fixes #129
Contributor role (optional)
What it changes
HDR detection queried the rendering adapter's first output. With the monitor connected to the motherboard/iGPU and the dGPU used for rendering, that output does not exist, so the game falls back to SDR even when Windows HDR is enabled.
Enumerate all adapters and match the attached output to the title window's monitor. Before the window exists, use the primary monitor. Both the game's HDR query and the F1 HDR status use this lookup. The HDR log now includes the display name.
How it was tested
ec3becbabf, based on main57dea7f236. The commands below ran on the identical source tree before committing.cargo clippy --workspace --all-targets --locked --offline -- -D warnings: passed.cargo clippy --workspace --all-targets --all-features --locked --offline -- -D warnings: passed.cargo test --locked --offline -p darner-gpu --lib host::hdr::tests: 5 passed.cargo test --workspace --locked --offline: failed in three GPU tests:indirect::tests::host_list_records_held_runs,host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue, andwatch::tests::ask_once_by_res_splits_reservations_without_refusals.cargo test --locked --offline -p darner-gpu --lib --quieton unmodified main57dea7f: reproduced the same indirect and watch failures; the UAV pool test passed in this baseline run.cargo test --locked --offline -p darner-gpu --lib host::uav_pool::tests::host_list_uav_pool_lifecycle_retire_trim_and_info_queue -- --exacton the fix: passed when run alone.cargo run --quiet --locked --offline --package xtask -- policy: 553 files passed; the same command with--stagedpassed for the one changed file.cargo build --release --locked --offline -p darner: passed; the resulting executable also returned its version successfully.Checklist
main.docs/asset-policy.md.Checked for overlap
crates/darner-gpu/src/host/hdr.rsor covers #129.[pr-fix][rendering] Detect HDR on the display adapter in hybrid GPU systemsto WIP: [pr-fix][rendering] Detect HDR on the display adapter in hybrid GPU systemsWIP: [pr-fix][rendering] Detect HDR on the display adapter in hybrid GPU systemsto [pr-fix][rendering] Detect HDR on the display adapter in hybrid GPU systemsView 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.