diff options
| author | Chunming Zhou <[email protected]> | 2016-08-04 07:47:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-08-16 14:43:14 +0000 |
| commit | 478feaf6cc420e66c071c0a743b334abfe8f18c9 (patch) | |
| tree | 2bbacbca2c4f18564c1bcf06a205235ab53d442f /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu: allocate shadow for pd/pt bo V2 (diff) | |
| download | kernel-478feaf6cc420e66c071c0a743b334abfe8f18c9.tar.gz kernel-478feaf6cc420e66c071c0a743b334abfe8f18c9.zip | |
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: Chunming Zhou <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 26f6028bb72b..d18ae01bd339 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -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; |
