drm/amd/display: Assign linear_pitch_alignment even for VM
authorjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 08:26:08 +0000 (08:26 +0000)
committerjsg <jsg@openbsd.org>
Mon, 9 Sep 2024 08:26:08 +0000 (08:26 +0000)
From Alvin Lee
d2fe7ac613a1ea8c346c9f5c89dc6ecc27232997 in linux-6.6.y/6.6.50
984debc133efa05e62f5aa1a7a1dd8ca0ef041f4 in mainline linux

sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c

index 72db370..50e643b 100644 (file)
@@ -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 {