mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
drm/amd/display: Assign linear_pitch_alignment even for VM
[ Upstream commit 984debc133efa05e62f5aa1a7a1dd8ca0ef041f4 ] [Description] Assign linear_pitch_alignment so we don't cause a divide by 0 error in VM environments Reviewed-by: Sohaib Nadeem <sohaib.nadeem@amd.com> Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4528d628fd
commit
d219f902b1
@@ -1265,6 +1265,7 @@ struct dc *dc_create(const struct dc_init_data *init_params)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (init_params->dce_environment == DCE_ENV_VIRTUAL_HW) {
|
if (init_params->dce_environment == DCE_ENV_VIRTUAL_HW) {
|
||||||
|
dc->caps.linear_pitch_alignment = 64;
|
||||||
if (!dc_construct_ctx(dc, init_params))
|
if (!dc_construct_ctx(dc, init_params))
|
||||||
goto destruct_dc;
|
goto destruct_dc;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user