summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunwei Zhang <Jerry.Zhang@amd.com>2017-01-12 14:11:26 +0800
committerQiang Yu <Qiang.Yu@amd.com>2017-05-17 10:24:19 +0800
commit60677cdc38d057b5e09e19170fc2318716b090d7 (patch)
tree1da74b895ab9fb8622498aba61750b4187518c34
parent8c2a3df406f2cf2e2752da0e20d8eca143a1bc8f (diff)
amdgpu: add sparse flag for bo creatation v2
v2: 7987cf4262d2cf83f32eb5debef9aefa791c1505 update GEM flag bit for 64-bit extension Change-Id: Ie291d391d0f68e7ff9028b3713808c38002d84c6 Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> Reviewed-by: Flora Cui <Flora.Cui@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 61ec2826..e274b68d 100644
--- a/include/drm/amdgpu_drm.h
+++ b/include/drm/amdgpu_drm.h
@@ -87,6 +87,8 @@ extern "C" {
#define AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS (1 << 5)
/* 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 pinned */
#define AMDGPU_GEM_CREATE_NO_EVICT (1ULL << 31)