diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index f2647b40f3cbff073544c89d1c9b9dbee4bb018b..459a1c55b5cfb53d1161d0f5a45424dbb1c89ef4 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -58,6 +58,7 @@ struct dc_caps { uint32_t i2c_speed_in_khz; unsigned int max_cursor_size; unsigned int max_video_width; + int pitch_alignment; bool dcc_const_color; bool dynamic_audio; bool is_apu; diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c index 340ff1158c10f1229a3804d5836ecfaa8cdb1348..531402a50c2c563233319ba55c2b788151c0f2d0 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c @@ -1269,7 +1269,7 @@ static bool construct( dc->caps.max_downscale_ratio = 200; dc->caps.i2c_speed_in_khz = 100; dc->caps.max_cursor_size = 256; - + dc->caps.pitch_alignment = 64; /* Alignment is 64 on DCN1 */ dc->caps.max_slave_planes = 1; dc->caps.is_apu = true;