gallium/radeon: add cs_get_next_fence winsys callback
authorMarek Olšák <marek.olsak@amd.com>
Mon, 1 Aug 2016 22:43:02 +0000 (00:43 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 6 Aug 2016 12:29:30 +0000 (14:29 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/radeon_winsys.h

index 3be4738027ab4b6b56e3c59cd870e57015ada5a2..e7787d3cb4ed908482a218e0a318c7161226b99c 100644 (file)
@@ -731,6 +731,13 @@ struct radeon_winsys {
                     unsigned flags,
                     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.
      *