aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormonk.liu2015-04-23 00:18:59 -0500
committerAlex Deucher2015-08-05 12:47:48 -0500
commit2f2c8ac0f4507474ac332fa33afcb8ccfeeb3938 (patch)
tree50c74ec6a39dce3cb81e06983203af29ab54066d /amdgpu/amdgpu_internal.h
parent3c5fe78801dbadc82cc25f4a63a983fea15d938b (diff)
downloadexternal-libdrm-2f2c8ac0f4507474ac332fa33afcb8ccfeeb3938.tar.gz
external-libdrm-2f2c8ac0f4507474ac332fa33afcb8ccfeeb3938.tar.xz
external-libdrm-2f2c8ac0f4507474ac332fa33afcb8ccfeeb3938.zip
amdgpu: support non-page-aligned userptr
Signed-off-by: monk.liu <monk.liu@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r--amdgpu/amdgpu_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index 8346f16b..19bc7e18 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -35,6 +35,9 @@
35#include "util_double_list.h" 35#include "util_double_list.h"
36 36
37#define AMDGPU_CS_MAX_RINGS 8 37#define AMDGPU_CS_MAX_RINGS 8
38/* do not use below macro if b is not power of 2 aligned value */
39#define ROUND_DOWN(a,b) ((a) & (~((b)-1)))
40#define ROUND_UP(a,b) (((a)+((b)-1)) & (~((b)-1)))
38 41
39struct amdgpu_bo_va_hole { 42struct amdgpu_bo_va_hole {
40 struct list_head list; 43 struct list_head list;