Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan RHI: Don't expose HDR surface format when SetHDRMetadata is null #18547

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

DrogonMar
Copy link
Contributor

What does this PR do?

Removes the common R10G10B10A2_PACK32 format from supported surface formats when SetHDRMetadata is null.

When using KDE with Wayland and enabling HDR on your monitor the engine will select the R10G10B10A2_PACK32 which ends up looking grey and dim due to no SetHDRMetadata support in the VK RHI, this fixes that and gives you a proper SDR image.

How was this PR tested?

I used the wayland branch on my fork with this setup:

  • Fedora 41
  • KDE Wayland
  • Main monitor HDR Enabled

I also tested with XCB just to make sure.

It's possible on KDE at least that when you use HDR you do expose the format VK_FORMAT_A2R10G10B10_UNORM_PACK32 but don't have the Vulkan extension needed to set HDR metadata.
Wayland HDR as of 12/2024 is experimental.

Signed-off-by: Reece Hagan <[email protected]>
@DrogonMar DrogonMar requested review from a team as code owners December 10, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants