summaryrefslogtreecommitdiff
path: root/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-07-09 13:51:13 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-08-05 13:47:52 -0400
commitf91b56dc8c604ec1c6f092d69550266d20dc9764 (patch)
tree6952e5b6e93f94a4dc8edb1889e532c229370c9b /amdgpu/amdgpu.h
parent12802da74f0e480bbde5a11df689329910893e87 (diff)
amdgpu: improve the amdgpu_cs_query_fence_status interface
make amdgpu_cs_query_fence reusable to support multi-fence query Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'amdgpu/amdgpu.h')
-rw-r--r--amdgpu/amdgpu.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/amdgpu/amdgpu.h b/amdgpu/amdgpu.h
index a38e488e..027b549b 100644
--- a/amdgpu/amdgpu.h
+++ b/amdgpu/amdgpu.h
@@ -369,9 +369,6 @@ struct amdgpu_cs_query_fence {
/** In which context IB was sent to execution */
amdgpu_context_handle context;
- /** Timeout in nanoseconds. */
- uint64_t timeout_ns;
-
/** To which HW IP type the fence belongs */
unsigned ip_type;
@@ -381,9 +378,6 @@ struct amdgpu_cs_query_fence {
/** Ring index of the HW IP */
uint32_t ring;
- /** Flags */
- uint64_t flags;
-
/** Specify fence for which we need to check submission status.*/
uint64_t fence;
};
@@ -908,8 +902,9 @@ int amdgpu_cs_submit(amdgpu_context_handle context,
/**
* Query status of Command Buffer Submission
*
- * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
* \param fence - \c [in] Structure describing fence to query
+ * \param timeout_ns - \c [in] Timeout value to wait
+ * \param flags - \c [in] Flags for the query
* \param expired - \c [out] If fence expired or not.\n
* 0 – if fence is not expired\n
* !0 - otherwise
@@ -925,6 +920,8 @@ int amdgpu_cs_submit(amdgpu_context_handle context,
* \sa amdgpu_cs_submit()
*/
int amdgpu_cs_query_fence_status(struct amdgpu_cs_query_fence *fence,
+ uint64_t timeout_ns,
+ uint64_t flags,
uint32_t *expired);
/*