summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Wang <Qingqing.Wang@amd.com>2015-07-17 19:39:56 +0800
committerMarek Olšák <marek.olsak@amd.com>2015-07-22 13:53:25 +0200
commitdbc34bac8ff7deb0856af86503fb1d663138715f (patch)
treeceddff60dcd03898e155cedb0ed8eccb803851c4
parentd94ae2111a9d6fa2aca9dcc0380b823ea19618fe (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.c2
-rw-r--r--tests/amdgpu/vce_tests.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c
index 4d02df2c..faceb832 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 bc887259..b5493929 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,