610.57.04 DRM Color Pipelines exhibit color distortion in dark scenes for SDR -> HDR conversion

The recent introduction of DRM Color Pipelines for the 610 series of drivers allows for color management (e.g. SDR → HDR/sRGB → bt2020) to be offloaded to the GPU instead of being done in software by the compositor. This has the benefit of enabling Wayland Direct Scanout, reducing latency.

Unfortunately, the implementation of Color Pipelines as of 610.57.04 appear to exhibit an issue where colors in darker scenes are noticeably banded/distorted when converting from SDR → HDR. In bright scenes, the image is visually indistinguishable from compositor color management.

I have attached screenshots taken from my HDR display while UZDoom (an SDR game) is running in both a dark and bright scene (images of the dark scene are added as a comment as I cannot attach more than 2 images). I have also attached drm_info output while DRM Color Pipelines were enabled and disabled showing that the NVIDIA Lite color pipeline variant was being used.

As very few compositors currently support this feature, I have only been able to reproduce this on the following compositors:

  • Jay: Latest jay-git with JAY_MCM_NVIDIA_USE_LUTS=1
  • KWin/KDE: A fork of kwin 6.7 with various 6.8 DRM Color Pipelines commits backported with KWIN_DRM_USE_COLOR_PIPELINE=1

Both exhibited identical color banding.

Do note that this issue occurs for all SDR games not just UZDoom. I used UZDoom to showcase this as it was simply the most convenient game I could use to demonstrate the issue.

drm_info.pipelines_enabled.txt (197.1 KB)

drm_info.pipelines_disabled.txt (197.1 KB)

The corresponding dark scenes, starting with Color Pipelines being enabled:

and disabled (software/compositor color management):

Note the obvious color distortion in the first image opposed to the second.