aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 8ede2645a06c..859942552e9f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -507,9 +507,12 @@ uint32_t amdgpu_display_framebuffer_domains(struct amdgpu_device *adev)
507{ 507{
508 uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM; 508 uint32_t domain = AMDGPU_GEM_DOMAIN_VRAM;
509 509
510#if defined(CONFIG_DRM_AMD_DC)
510 if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN && 511 if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
511 adev->flags & AMD_IS_APU) 512 adev->flags & AMD_IS_APU &&
513 amdgpu_device_asic_has_dc_support(adev->asic_type))
512 domain |= AMDGPU_GEM_DOMAIN_GTT; 514 domain |= AMDGPU_GEM_DOMAIN_GTT;
515#endif
513 516
514 return domain; 517 return domain;
515} 518}