Skip to content

Conversation

@UjinT34
Copy link
Contributor

@UjinT34 UjinT34 commented Nov 23, 2025

Describe your PR, what does it fix/add?

Adds quirks:prefer_hdr
0 - off (default)
1 - always
2 - gamescope only

When this setting is active CM proto sends HDR image description as a preferred one regardless of the monitor settings.
Fixes render:cm_auto_hdr and whitescreen with forced HDR for some clients.
Should fix chromium flickering in fullscreen on some setups.
In most cases changing this setting while a client is running won't affect it right away.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Might not use the best way to detect gamescope.
DS with gamescope HDR might produce glitches not related to this PR.
Might cause unneeded SDR -> HDR -> SDR conversion.
If it doesn't help with chromium verify that it is not caused by https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37880 "Restore SDR mode again when the swapchain gets destroyed - At least some drivers, e.g., amdgpu, need a full atomic modeset for switching between SDR and HDR modes."

Is it ready for merging, or does it need work?

Ready

@vaxerski
Copy link
Member

why quirks and not render

@UjinT34
Copy link
Contributor Author

UjinT34 commented Nov 26, 2025

Cause it's a temporary workaround for some client bugs and shouldn't be used in general. And it seems there'll be more settings in this category.

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meh ok wiki mr needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants