summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_fence.h
diff options
context:
space:
mode:
authorBruce Cherniak <[email protected]>2016-12-12 19:24:59 -0600
committerTim Rowley <[email protected]>2016-12-16 11:29:02 -0600
commit79b66ec05e2745e5d19838dcfd83f905afa82b6c (patch)
tree5893ed8d0e3dc45248e2a4b14be64f91ec33b753 /src/gallium/drivers/swr/swr_fence.h
parent3421b3f5a35f5cf29934f74c30850c4d04ba0237 (diff)
swr: Implement fence attached work queues for deferred deletion.
Work can now be added to fences and triggered by fence completion. This allows for deferred resource deletion, and other asynchronous tasks. Reviewed-by: George Kyriazis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_fence.h')
-rw-r--r--src/gallium/drivers/swr/swr_fence.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_fence.h b/src/gallium/drivers/swr/swr_fence.h
index 80a4345af87..4766b5b8911 100644
--- a/src/gallium/drivers/swr/swr_fence.h
+++ b/src/gallium/drivers/swr/swr_fence.h
@@ -25,6 +25,8 @@
#include "pipe/p_state.h"
#include "util/u_inlines.h"
+#include "swr_fence_work.h"
+
struct pipe_screen;
struct swr_fence {
@@ -36,6 +38,12 @@ struct swr_fence {
unsigned pending;
unsigned id; /* Just for reference */
+
+ struct {
+ uint32_t count;
+ struct swr_fence_work head;
+ struct swr_fence_work *tail;
+ } work;
};