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_test.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_test.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c index 3c4d7574d704..ed8c3739015b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |||
@@ -61,7 +61,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev) | |||
61 | 61 | ||
62 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, | 62 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, |
63 | AMDGPU_GEM_DOMAIN_VRAM, 0, | 63 | AMDGPU_GEM_DOMAIN_VRAM, 0, |
64 | NULL, NULL, &vram_obj); | 64 | NULL, NULL, 0, &vram_obj); |
65 | if (r) { | 65 | if (r) { |
66 | DRM_ERROR("Failed to create VRAM object\n"); | 66 | DRM_ERROR("Failed to create VRAM object\n"); |
67 | goto out_cleanup; | 67 | goto out_cleanup; |
@@ -82,7 +82,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev) | |||
82 | 82 | ||
83 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, | 83 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, |
84 | AMDGPU_GEM_DOMAIN_GTT, 0, NULL, | 84 | AMDGPU_GEM_DOMAIN_GTT, 0, NULL, |
85 | NULL, gtt_obj + i); | 85 | NULL, 0, gtt_obj + i); |
86 | if (r) { | 86 | if (r) { |
87 | DRM_ERROR("Failed to create GTT object %d\n", i); | 87 | DRM_ERROR("Failed to create GTT object %d\n", i); |
88 | goto out_lclean; | 88 | goto out_lclean; |