diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2016-07-26 14:13:21 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-16 10:40:01 -0400 |
commit | e7893c4bd34b9d2f942d77666656efaa084a3f87 (patch) | |
tree | 526fb34d81ea8e1538bc65a8f2e259273c98e924 /include/uapi/drm/amdgpu_drm.h | |
parent | f4a7f127d9151683ca806f1c73cfbc72f268d62e (diff) | |
download | linux-stable-e7893c4bd34b9d2f942d77666656efaa084a3f87.tar.gz linux-stable-e7893c4bd34b9d2f942d77666656efaa084a3f87.tar.bz2 linux-stable-e7893c4bd34b9d2f942d77666656efaa084a3f87.zip |
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/uapi/drm/amdgpu_drm.h')
-rw-r--r-- | include/uapi/drm/amdgpu_drm.h | 2 |
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 */ |