drm/amdgpu: enable freesync for A+A configs
authorChristian König <christian.koenig@amd.com>
Wed, 27 Jan 2021 12:20:40 +0000 (13:20 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 17:06:54 +0000 (12:06 -0500)
commitdd017d01c3d96e48abd6fe6ccce4ef977fb5e10b
tree4359e89d95eceda63e982658de315720d1902a63
parente487cb54db1b42a2c7907defb14c71ab27622f9b
drm/amdgpu: enable freesync for A+A configs

Some newer APUs can scanout directly from GTT, that saves us from
allocating another bounce buffer in VRAM and enables freesync in such
configurations.

Without this patch creating a framebuffer from the imported BO will
fail and userspace will fall back to a copy.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c