Skip to contentSkip to conversation

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

PATCH In review Alex Deucher 2 participants 2 messages Feb 17, 2021 – Feb 19, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

From: Mario Kleiner <[email protected]>

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)

---
 drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +1 -3
index 4600231da6cb..895b015b02e8 100644
@@ -216,9 +216,7 @@ static void set_spatial_dither(
 	REG_UPDATE(FMT_BIT_DEPTH_CONTROL,
 		FMT_TEMPORAL_DITHER_EN, 0);
 
-	/* no 10bpc on DCE11*/
-	if (params->flags.SPATIAL_DITHER_ENABLED == 0 ||
-		params->flags.SPATIAL_DITHER_DEPTH == 2)
+	if (params->flags.SPATIAL_DITHER_ENABLED == 0)
 		return;
 
 	/* only use FRAME_COUNTER_MAX if frameRandom == 1*/
Signature · 6 lines
2.29.2

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

Your v2 has my

thanks,
-mario

Quoted 35 lines · Alex Deucher

From: Mario Kleiner <[email protected]>

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)

---
 drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +1 -4
index 4600231da6cb..895b015b02e8 100644
@@ -216,9 +216,7 @@ static void set_spatial_dither(
        REG_UPDATE(FMT_BIT_DEPTH_CONTROL,
                FMT_TEMPORAL_DITHER_EN, 0);
 
-       /* no 10bpc on DCE11*/
-       if (params->flags.SPATIAL_DITHER_ENABLED == 0 ||
-               params->flags.SPATIAL_DITHER_DEPTH == 2)
+       if (params->flags.SPATIAL_DITHER_ENABLED == 0)
                return;
 
        /* only use FRAME_COUNTER_MAX if frameRandom == 1*/
--
Quoted 3 lines

2.29.2

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx