diff options
| author | Christian König <[email protected]> | 2016-09-07 13:10:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-09-14 19:10:44 +0000 |
| commit | 9702d40dd3baa90e8f08b42a512fe76e2794f9bc (patch) | |
| tree | bbdc60a8110c650a066e1117d9fbde8237230d9f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amdgpu: validate size and offset of user fence BO (diff) | |
| download | kernel-9702d40dd3baa90e8f08b42a512fe76e2794f9bc.tar.gz kernel-9702d40dd3baa90e8f08b42a512fe76e2794f9bc.zip | |
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 <[email protected]>
Reviewed-by: Alex Deucher <[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 | 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 @@ #include <drm/amdgpu_drm.h> #include "amdgpu.h" +#define AMDGPU_BO_INVALID_OFFSET LONG_MAX + /** * amdgpu_mem_type_to_domain - return domain corresponding to mem_type * @mem_type: ttm memory type |
