Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 746673c7 authored by Andrew Jiang's avatar Andrew Jiang Committed by Alex Deucher
Browse files

drm/amd/display: Rename pitch_alignment to linear_pitch_alignment



Also initialize this to 64 for all ASICs.

Signed-off-by: default avatarAndrew Jiang <Andrew.Jiang@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e994340b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -702,6 +702,7 @@ struct dc *dc_create(const struct dc_init_data *init_params)

	dc->caps.max_links = dc->link_count;
	dc->caps.max_audios = dc->res_pool->audio_count;
	dc->caps.linear_pitch_alignment = 64;

	dc->config = init_params->flags;

+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ struct dc_caps {
	uint32_t i2c_speed_in_khz;
	unsigned int max_cursor_size;
	unsigned int max_video_width;
	int pitch_alignment;
	int linear_pitch_alignment;
	bool dcc_const_color;
	bool dynamic_audio;
	bool is_apu;
+0 −1
Original line number Diff line number Diff line
@@ -1270,7 +1270,6 @@ 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;