summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChunming Zhou <David1.Zhou@amd.com>2016-07-26 09:13:21 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-08-16 17:40:01 +0300
commite7893c4bd34b9d2f942d77666656efaa084a3f87 (patch)
tree526fb34d81ea8e1538bc65a8f2e259273c98e924 /include
parentf4a7f127d9151683ca806f1c73cfbc72f268d62e (diff)
downloadlinux-e7893c4bd34b9d2f942d77666656efaa084a3f87.tar.xz
drm/amdgpu: add shadow bo support V2
shadow bo is the shadow of a bo, which is always in GTT, which can be used to backup the original bo. V2: reference shadow parent, shadow bo will be freed by who allocted him. Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/drm/amdgpu_drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
index a902a602490b..5aef0b71079b 100644
--- a/include/uapi/drm/amdgpu_drm.h
+++ b/include/uapi/drm/amdgpu_drm.h
@@ -79,6 +79,8 @@ extern "C" {
#define AMDGPU_GEM_CREATE_CPU_GTT_USWC (1 << 2)
/* Flag that the memory should be in VRAM and cleared */
#define AMDGPU_GEM_CREATE_VRAM_CLEARED (1 << 3)
+/* Flag that create shadow bo(GTT) while allocating vram bo */
+#define AMDGPU_GEM_CREATE_SHADOW (1 << 4)
struct drm_amdgpu_gem_create_in {
/** the requested memory size */