diff options
author | Christian König <christian.koenig@amd.com> | 2016-09-07 09:10:44 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-14 15:10:44 -0400 |
commit | 9702d40dd3baa90e8f08b42a512fe76e2794f9bc (patch) | |
tree | bbdc60a8110c650a066e1117d9fbde8237230d9f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | aa29040b437be9e4255062aa38bcbe7cb50da8c1 (diff) |
drm/amdgpu: add AMDGPU_BO_INVALID_OFFSET
An invalid offset to be used by custom VRAM/GGT manager when we
don't have an offset for an BO.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 3032c541ef0e..8255034d73eb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <drm/amdgpu_drm.h> | 31 | #include <drm/amdgpu_drm.h> |
32 | #include "amdgpu.h" | 32 | #include "amdgpu.h" |
33 | 33 | ||
34 | #define AMDGPU_BO_INVALID_OFFSET LONG_MAX | ||
35 | |||
34 | /** | 36 | /** |
35 | * amdgpu_mem_type_to_domain - return domain corresponding to mem_type | 37 | * amdgpu_mem_type_to_domain - return domain corresponding to mem_type |
36 | * @mem_type: ttm memory type | 38 | * @mem_type: ttm memory type |