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_benchmark.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_benchmark.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c index 2fb299afc12b..63ec1e1bb6aa 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | |||
@@ -81,7 +81,7 @@ static void amdgpu_benchmark_move(struct amdgpu_device *adev, unsigned size, | |||
81 | 81 | ||
82 | n = AMDGPU_BENCHMARK_ITERATIONS; | 82 | n = AMDGPU_BENCHMARK_ITERATIONS; |
83 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, sdomain, 0, NULL, | 83 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, sdomain, 0, NULL, |
84 | NULL, &sobj); | 84 | NULL, 0, &sobj); |
85 | if (r) { | 85 | if (r) { |
86 | goto out_cleanup; | 86 | goto out_cleanup; |
87 | } | 87 | } |
@@ -94,7 +94,7 @@ static void amdgpu_benchmark_move(struct amdgpu_device *adev, unsigned size, | |||
94 | goto out_cleanup; | 94 | goto out_cleanup; |
95 | } | 95 | } |
96 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, ddomain, 0, NULL, | 96 | r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, ddomain, 0, NULL, |
97 | NULL, &dobj); | 97 | NULL, 0, &dobj); |
98 | if (r) { | 98 | if (r) { |
99 | goto out_cleanup; | 99 | goto out_cleanup; |
100 | } | 100 | } |