Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Allow spatial dither to 10 bpc on all DCE

Spatial dithering to 10 bpc depth was disabled for all DCE's.

Testing on DCE-8.3 and DCE-11.2 did not show any obvious ill
effects, but a measureable precision improvement (via colorimeter)
when displaying a fp16 framebuffer to a 10 bpc DP or HDMI connected
HDR-10 monitor.

v2: enable it for all DCEs (Alex)

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Cc: Alex Deucher <alexdeucher@gmail.com>
Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com> (v2)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mario Kleiner and committed by
Alex Deucher
afdd1de0 d7faf6f5

+1 -3
+1 -3
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
··· 216 216 REG_UPDATE(FMT_BIT_DEPTH_CONTROL, 217 217 FMT_TEMPORAL_DITHER_EN, 0); 218 218 219 - /* no 10bpc on DCE11*/ 220 - if (params->flags.SPATIAL_DITHER_ENABLED == 0 || 221 - params->flags.SPATIAL_DITHER_DEPTH == 2) 219 + if (params->flags.SPATIAL_DITHER_ENABLED == 0) 222 220 return; 223 221 224 222 /* only use FRAME_COUNTER_MAX if frameRandom == 1*/