diff options
author | Sinclair Yeh <[email protected]> | 2017-05-03 11:48:25 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-17 10:09:25 -0600 |
commit | 65175df601003f5ba29dc9c088952f6454adc0d6 (patch) | |
tree | 8f61012627474f32853e247173a4e601d6ee9d40 /src/gallium/drivers/svga/svga_winsys.h | |
parent | 9ee86d6db7e3ec7d356616163e0804d85e0691e4 (diff) |
drivers/svga, winsys/svga/drm: Thread through timeout for fence_finish
The timeout parameter is required to implement
EGL_ANDROID_native_fence_sync.
v2
* Replaced default timeout from 0 to PIPE_TIMEOUT_INFINITE
* Add more documentation to the new timeout parameter
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_winsys.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_winsys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h index 7c2fb70a0af..c785b4f748a 100644 --- a/src/gallium/drivers/svga/svga_winsys.h +++ b/src/gallium/drivers/svga/svga_winsys.h @@ -625,11 +625,14 @@ struct svga_winsys_screen /** * Wait for the fence to finish. + * \param timeout in nanoseconds (may be PIPE_TIMEOUT_INFINITE). + * 0 to return immediately, if the API suports it. * \param flags driver-specific meaning * \return zero on success. */ int (*fence_finish)( struct svga_winsys_screen *sws, struct pipe_fence_handle *fence, + uint64_t timeout, unsigned flag ); |