diff options
author | Ken Wang <Qingqing.Wang@amd.com> | 2015-07-17 19:39:56 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-05 13:47:52 -0400 |
commit | 9961900b8dcb9e1378c9467f99db84c19c894992 (patch) | |
tree | 1519a0854abce8ee83f3d8bf61b635da7cf0e56b | |
parent | 8aeffcc1cf3360fddd97f4a6b6f7300f401142ae (diff) |
test/amdgpu : fix a bug in VCE/UVD test introduced by previous change
Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
-rw-r--r-- | tests/amdgpu/cs_tests.c | 2 | ||||
-rw-r--r-- | tests/amdgpu/vce_tests.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index 4d02df2c1a08..faceb83275a2 100644 --- a/tests/amdgpu/cs_tests.c +++ b/tests/amdgpu/cs_tests.c @@ -134,6 +134,7 @@ static int submit(unsigned ndw, unsigned ip) ibs_request.number_of_ibs = 1; ibs_request.ibs = &ib_info; + ibs_request.fence_info.handle = NULL; r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); if (r) @@ -145,6 +146,7 @@ static int submit(unsigned ndw, unsigned ip) fence_status.context = context_handle; fence_status.ip_type = ip; + fence_status.fence = ibs_request.seq_no; r = amdgpu_cs_query_fence_status(&fence_status, AMDGPU_TIMEOUT_INFINITE, diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c index bc887259c897..b549392918a6 100644 --- a/tests/amdgpu/vce_tests.c +++ b/tests/amdgpu/vce_tests.c @@ -150,6 +150,7 @@ static int submit(unsigned ndw, unsigned ip) ibs_request.number_of_ibs = 1; ibs_request.ibs = &ib_info; + ibs_request.fence_info.handle = NULL; r = amdgpu_cs_submit(context_handle, 0, &ibs_request, 1); if (r) @@ -161,6 +162,7 @@ static int submit(unsigned ndw, unsigned ip) fence_status.context = context_handle; fence_status.ip_type = ip; + fence_status.fence = ibs_request.seq_no; r = amdgpu_cs_query_fence_status(&fence_status, AMDGPU_TIMEOUT_INFINITE, |