Mesa (master): gallium/radeon: add cs_get_next_fence winsys callback

Marek Olšák mareko at kemper.freedesktop.org
Sat Aug 6 12:31:02 UTC 2016


Module: Mesa
Branch: master
Commit: 04a6cb63aad06da24d707c9e423503cad2dbb445
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=04a6cb63aad06da24d707c9e423503cad2dbb445

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Aug  2 00:43:02 2016 +0200

gallium/radeon: add cs_get_next_fence winsys callback

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/drivers/radeon/radeon_winsys.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index 3be4738..e7787d3 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -732,6 +732,13 @@ struct radeon_winsys {
                     struct pipe_fence_handle **fence);
 
     /**
+     * Create a fence before the CS is flushed.
+     * The user must flush manually to complete the initializaton of the fence.
+     * The fence must not be used before the flush.
+     */
+    struct pipe_fence_handle *(*cs_get_next_fence)(struct radeon_winsys_cs *cs);
+
+    /**
      * Return true if a buffer is referenced by a command stream.
      *
      * \param cs        A command stream.




More information about the mesa-commit mailing list