diff options
author | Deepak Sharma <Deepak.Sharma@amd.com> | 2018-05-26 02:12:29 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-29 20:17:51 +0200 |
commit | 84b74608442d00fbdcd233e3230b3068b0ab9b18 (patch) | |
tree | 3e5b1eaf3aa1a39437d539684acb0cab81ce778f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | drm/amdgpu: Use GTT for dumb buffer if sg display enabled (v2) (diff) | |
download | linux-84b74608442d00fbdcd233e3230b3068b0ab9b18.tar.xz linux-84b74608442d00fbdcd233e3230b3068b0ab9b18.zip |
drm/amdgpu: Add helper function to get buffer domain
Move logic of getting supported domain to a helper
function
Signed-off-by: Deepak Sharma <Deepak.Sharma@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 540e03fa159f..731748033878 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -289,7 +289,8 @@ int amdgpu_bo_restore_from_shadow(struct amdgpu_device *adev, struct reservation_object *resv, struct dma_fence **fence, bool direct); - +uint32_t amdgpu_bo_get_preferred_pin_domain(struct amdgpu_device *adev, + uint32_t domain); /* * sub allocation |