diff options
| author | Deepak Sharma <[email protected]> | 2018-05-26 00:12:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-05-29 18:17:51 +0000 |
| 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 | kernel-84b74608442d00fbdcd233e3230b3068b0ab9b18.tar.gz kernel-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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
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 |
