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_vm.c | |
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_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 9255c3e579fc..601e899005d0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -333,7 +333,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev, | |||
333 | AMDGPU_GPU_PAGE_SIZE, true, | 333 | AMDGPU_GPU_PAGE_SIZE, true, |
334 | AMDGPU_GEM_DOMAIN_VRAM, | 334 | AMDGPU_GEM_DOMAIN_VRAM, |
335 | flags, | 335 | flags, |
336 | NULL, resv, &pt); | 336 | NULL, resv, 0, &pt); |
337 | if (r) | 337 | if (r) |
338 | return r; | 338 | return r; |
339 | 339 | ||
@@ -2538,7 +2538,7 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm, | |||
2538 | r = amdgpu_bo_create(adev, amdgpu_vm_bo_size(adev, 0), align, true, | 2538 | r = amdgpu_bo_create(adev, amdgpu_vm_bo_size(adev, 0), align, true, |
2539 | AMDGPU_GEM_DOMAIN_VRAM, | 2539 | AMDGPU_GEM_DOMAIN_VRAM, |
2540 | flags, | 2540 | flags, |
2541 | NULL, NULL, &vm->root.bo); | 2541 | NULL, NULL, 0, &vm->root.bo); |
2542 | if (r) | 2542 | if (r) |
2543 | goto error_free_sched_entity; | 2543 | goto error_free_sched_entity; |
2544 | 2544 | ||