Skip to content

HDR ITM seems to not be functional (in Cyberpunk 2077) #899

Description

@JacekJagosz

OS: Solus 4.3
APU: AMD Ryzen PRO 4650G (Renoir with Vega iGPU)
Kernel: 6.3.6 with HDR patches from this branch https://gitlab.freedesktop.org/mwen/linux-amd/-/tree/amd-private-color-v2
Mesa: 23.0.3
Wine stuff: Lutris-GE-Proton 8.5, DXVK 2.2, VKD3D 2.9
Gamescope: 3.12.0-beta9

First I wanted to thank you all for making HDR work on Linux, I am so happy it is working already.
When I enable HDR in Cyberpunk's settings the colors are extremely washed out, but this is something other users have reported too on Linux. So I wanted to use SDR in-game and reverse tonemapping to have HDR presentation instead:

env ENABLE_GAMESCOPE_WSI=1 DXVK_HDR=1 LUTRIS_SKIP_INIT=1 LIBSEAT_BACKEND=logind ENABLE_MANGOHUD=0 ENABLE_VKBASALT=0 gamescope -f --hdr-enabled -W 2560 -H 1440 -w 2560 -h 1440 --hdr-itm-enable --hdr-itm-target-nits=600 --hdr-itm-sdr-nits=100 lutris lutris:rungameid/1

I noticed that no matter if I add --hdr-itm-enable or not, whatever values I choose for --hdr-itm-target-nits=600 --hdr-itm-sdr-nits=100 the image looks exactly the same. It is converted to HDR in some way, but it seems not using itm.
Then I did:

env ENABLE_GAMESCOPE_WSI=1 DXVK_HDR=1 LUTRIS_SKIP_INIT=1 LIBSEAT_BACKEND=logind ENABLE_MANGOHUD=0 ENABLE_VKBASALT=0 gamescope -f --hdr-enabled -W 2560 -H 1440 -w 2560 -h 1440 --hdr-itm-enable --hdr-itm-target-nits=600 --hdr-itm-sdr-nits=100 --hdr-sdr-content-nits=1000 lutris lutris:rungameid/1

And chose very high or very low values for --hdr-sdr-content-nits then I realised this setting does visibly change the presentation. Which makes no sense to me as if I understood the source code correctly if itm is enabled this setting should not affect anything? The results are the same if I do --hdr-itm-enable or not.
Is this expected behaviour? Could I do anything to diagnose what is happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions