`D3D12HDR::CheckDisplayHDRSupport()` is sometimes incorrect

Open
#921 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Start in the D3D12HDR sample project and inspect D3D12HDR::CheckDisplayHDRSupport(), then reproduce the issue with HDR displays connected to dedicated and integrated GPUs. Trace how display adapters are enumerated and verify that the function reports support correctly after moving the window to the secondary display.

Written by the indexing model from the issue text.

Description

The HDR sample project does not enumerate all display adapters, which causes D3D12HDR::CheckDisplayHDRSupport() to report incorrect information. To reproduce this issue:

  1. Connect a display to a dedicated GPU, such as an NVIDIA card
  2. Connect a second HDR-compatible display to an integrated GPU, such as an AMD integrated GPU
  3. Set the dedicated GPU as the "main display"
  4. Enable HDR output in Windows on the secondary display that is connected to the integrated GPU
  5. Run the project
  6. Move the window to the secondary display that is connected to the integrated GPU
  7. Note that CheckDisplayHDRSupport incorrectly reports false
Dominant language
C++
Stars
6.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DirectX-Graphics-Samples

All issues in microsoft/DirectX-Graphics-Samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.