summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-07-13 22:43:29 +0800
committerMarek Olšák <marek.olsak@amd.com>2015-07-22 13:53:25 +0200
commitab50d49a208ee4f6e1a3482dc29e67f4620d89ab (patch)
tree45d4aac4d2c4c471cf8c3cfe59d4990d88fbe6bd
parentc1d7bf5d6589afc6e98f4f1504110b25f7419eb8 (diff)
tests/amdgpu: remove the duplicate IB allocation for VCE test
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
-rw-r--r--tests/amdgpu/vce_tests.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c
index 1d2cd40d..1c040440 100644
--- a/tests/amdgpu/vce_tests.c
+++ b/tests/amdgpu/vce_tests.c
@@ -156,14 +156,6 @@ static int submit(unsigned ndw, unsigned ip)
if (r)
return r;
- r = amdgpu_bo_alloc_and_map(device_handle, IB_SIZE, 4096,
- AMDGPU_GEM_DOMAIN_GTT, 0,
- &ib_handle, (void**)&ib_cpu,
- &ib_mc_address);
- if (r)
- return r;
- resources[num_resources-1] = ib_handle;
-
fence_status.context = context_handle;
fence_status.ip_type = ip;