diff options
author | Deepak Sharma <Deepak.Sharma@amd.com> | 2018-05-25 20:12:29 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-29 14:17:51 -0400 |
commit | 84b74608442d00fbdcd233e3230b3068b0ab9b18 (patch) | |
tree | 3e5b1eaf3aa1a39437d539684acb0cab81ce778f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | bda31a24dc5c03fd76832c4d672fba8355e3aa44 (diff) |
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, | |||
289 | struct reservation_object *resv, | 289 | struct reservation_object *resv, |
290 | struct dma_fence **fence, | 290 | struct dma_fence **fence, |
291 | bool direct); | 291 | bool direct); |
292 | 292 | uint32_t amdgpu_bo_get_preferred_pin_domain(struct amdgpu_device *adev, | |
293 | uint32_t domain); | ||
293 | 294 | ||
294 | /* | 295 | /* |
295 | * sub allocation | 296 | * sub allocation |