From: jsg Date: Mon, 9 Sep 2024 08:26:08 +0000 (+0000) Subject: drm/amd/display: Assign linear_pitch_alignment even for VM X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eeec7fc6c26134105a1a0205b46ddccad7d98a96;p=openbsd drm/amd/display: Assign linear_pitch_alignment even for VM From Alvin Lee d2fe7ac613a1ea8c346c9f5c89dc6ecc27232997 in linux-6.6.y/6.6.50 984debc133efa05e62f5aa1a7a1dd8ca0ef041f4 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c index 72db370e2f2..50e643bfdfb 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c +++ b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c @@ -1298,6 +1298,7 @@ struct dc *dc_create(const struct dc_init_data *init_params) return NULL; if (init_params->dce_environment == DCE_ENV_VIRTUAL_HW) { + dc->caps.linear_pitch_alignment = 64; if (!dc_construct_ctx(dc, init_params)) goto destruct_dc; } else {