]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bb2ed369b8d69c0299cd5a5433b1174c3cdc844
tree1b1026114f032d1c18f28233e666ee1c952ac8be
parent4f420d5d978173214e26a2e04165ad42f2acb17d
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