From 872a5c714aa9b630980894a18e6111530806bf0f Mon Sep 17 00:00:00 2001 From: Jammy Zhou Date: Mon, 13 Jul 2015 22:43:29 +0800 Subject: [PATCH] tests/amdgpu: remove the duplicate IB allocation for VCE test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jammy Zhou Reviewed-by: Christian König --- tests/amdgpu/vce_tests.c | 8 -------- 1 file changed, 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;