Skip to content

Commit 353ca0f

Browse files
dliviualexdeucher
authored andcommitted
drm/amd/display: Fix 10bit 4K display on CIK GPUs
Commit 72a7cf0 ("drm/amd/display: Keep linebuffer pixel depth at 30bpp for DCE-11.0.") doesn't seems to have fixed 10bit 4K rendering over DisplayPort for CIK GPUs. On my machine with a HAWAII GPU I get a broken image that looks like it has an effective resolution of 1920x1080 but scaled up in an irregular way. Reverting the commit or applying this patch fixes the problem on v5.14-rc1. Fixes: 72a7cf0 ("drm/amd/display: Keep linebuffer pixel depth at 30bpp for DCE-11.0.") Acked-by: Mario Kleiner <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent bd89c99 commit 353ca0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)
10621062
* so use only 30 bpp on DCE_VERSION_11_0. Testing with DCE 11.2 and 8.3
10631063
* did not show such problems, so this seems to be the exception.
10641064
*/
1065-
if (plane_state->ctx->dce_version != DCE_VERSION_11_0)
1065+
if (plane_state->ctx->dce_version > DCE_VERSION_11_0)
10661066
pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_36BPP;
10671067
else
10681068
pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_30BPP;

0 commit comments

Comments
 (0)