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 22:36:33 +0000 (17:36 -0500)
commitcd9b0159beb7787bec38eb339ed7bc167d83b4ff
tree1b1026114f032d1c18f28233e666ee1c952ac8be
parent53a5a2729470ac7a7f77a64be4ae87dc4aa80d39
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