From a7d84f7731b2095ed5dc4f741213fef60a55dcd3 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 13 Jul 2016 15:16:20 +0200 Subject: gallium/radeon: add a return value to cs_flush MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Required by our UVD code. Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_winsys.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/radeon') diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h index 090cafc7ff6..a9c9b9ebf32 100644 --- a/src/gallium/drivers/radeon/radeon_winsys.h +++ b/src/gallium/drivers/radeon/radeon_winsys.h @@ -733,10 +733,12 @@ struct radeon_winsys { * \param flags, RADEON_FLUSH_ASYNC or 0. * \param fence Pointer to a fence. If non-NULL, a fence is inserted * after the CS and is returned through this parameter. + * \return Negative POSIX error code or 0 for success. + * Asynchronous submissions never return an error. */ - void (*cs_flush)(struct radeon_winsys_cs *cs, - unsigned flags, - struct pipe_fence_handle **fence); + int (*cs_flush)(struct radeon_winsys_cs *cs, + unsigned flags, + struct pipe_fence_handle **fence); /** * Return true if a buffer is referenced by a command stream. -- cgit v1.2.3