summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunwei Zhang <Jerry.Zhang@amd.com>2017-03-20 13:45:10 +0800
committerQiang Yu <Qiang.Yu@amd.com>2017-05-17 11:19:54 +0800
commite98f90a7b095abd07679eef9044fd73065808971 (patch)
treefd3f83731dc1f438b8b74208241661283798f8ce
parent6fc42e3c901f6b126fff88a96b8e9f4209e24105 (diff)
amdgpu: [hybrid] add a flag of memory allcation from top
Change-Id: I740c9f93a483b9cb728892963c7a0d6577819d59 Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
-rw-r--r--include/drm/amdgpu_drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h
index 5f775c91..022e0037 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -102,6 +102,8 @@ extern "C" {
/* Hybrid specific */
/* Flag that the memory should be in SPARSE resource */
#define AMDGPU_GEM_CREATE_SPARSE (1ULL << 29)
+/* Flag that the memory allocation should be from top of domain */
+#define AMDGPU_GEM_CREATE_TOP_DOWN (1ULL << 30)
/* Flag that the memory allocation should be pinned */
#define AMDGPU_GEM_CREATE_NO_EVICT (1ULL << 31)