提交 478feaf6 编写于 作者: C Chunming Zhou 提交者: Alex Deucher

drm/amdgpu: add shadow flag V2

Indicate if need to sync between bo and shadow, where sync to where.
V2:
Rename to backup_shadow
Signed-off-by: NChunming Zhou <David1.Zhou@amd.com>
Reviewed-by: NChristian König <christian.koenig@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 1baa439f
......@@ -480,6 +480,12 @@ struct amdgpu_bo_va {
#define AMDGPU_GEM_DOMAIN_MAX 0x3
enum amdgpu_bo_shadow {
AMDGPU_BO_SHADOW_TO_NONE = 0,
AMDGPU_BO_SHADOW_TO_PARENT,
AMDGPU_BO_SHADOW_TO_SHADOW,
};
struct amdgpu_bo {
/* Protected by gem.mutex */
struct list_head list;
......@@ -506,6 +512,8 @@ struct amdgpu_bo {
struct drm_gem_object gem_base;
struct amdgpu_bo *parent;
struct amdgpu_bo *shadow;
/* indicate if need to sync between bo and shadow */
enum amdgpu_bo_shadow backup_shadow;
struct ttm_bo_kmap_obj dma_buf_vmap;
struct amdgpu_mn *mn;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册