diff options
author | Yong Zhao <Yong.Zhao@amd.com> | 2017-07-20 18:49:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-15 14:45:58 -0400 |
commit | 2046d46db9166bddc84778f0b3477f6d1e9068ea (patch) | |
tree | 93269d90c5382f0988b3872ccff6b1b53ba9e9bf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | 078af1a3e9d7b47f3e37ea25640023cf2e8b4d51 (diff) |
drm/amdgpu: Add a parameter to amdgpu_bo_create()
The parameter init_value contains the value to which we initialized
VRAM bo when AMDGPU_GEM_CREATE_VRAM_CLEARED flag is set.
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index cbf6e6d54ef0..b6d8be84b884 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -193,6 +193,7 @@ int amdgpu_bo_create(struct amdgpu_device *adev, | |||
193 | bool kernel, u32 domain, u64 flags, | 193 | bool kernel, u32 domain, u64 flags, |
194 | struct sg_table *sg, | 194 | struct sg_table *sg, |
195 | struct reservation_object *resv, | 195 | struct reservation_object *resv, |
196 | uint64_t init_value, | ||
196 | struct amdgpu_bo **bo_ptr); | 197 | struct amdgpu_bo **bo_ptr); |
197 | int amdgpu_bo_create_restricted(struct amdgpu_device *adev, | 198 | int amdgpu_bo_create_restricted(struct amdgpu_device *adev, |
198 | unsigned long size, int byte_align, | 199 | unsigned long size, int byte_align, |
@@ -200,6 +201,7 @@ int amdgpu_bo_create_restricted(struct amdgpu_device *adev, | |||
200 | struct sg_table *sg, | 201 | struct sg_table *sg, |
201 | struct ttm_placement *placement, | 202 | struct ttm_placement *placement, |
202 | struct reservation_object *resv, | 203 | struct reservation_object *resv, |
204 | uint64_t init_value, | ||
203 | struct amdgpu_bo **bo_ptr); | 205 | struct amdgpu_bo **bo_ptr); |
204 | int amdgpu_bo_create_reserved(struct amdgpu_device *adev, | 206 | int amdgpu_bo_create_reserved(struct amdgpu_device *adev, |
205 | unsigned long size, int align, | 207 | unsigned long size, int align, |