summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_fence.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-08-20 15:25:27 +0100
committerKeith Whitwell <[email protected]>2010-08-25 10:29:27 +0100
commit5a45e53df4419fde1fe7696f3a9459893363f7c5 (patch)
tree27554ababf1c7922161129f5cfd23f355c80c121 /src/gallium/drivers/llvmpipe/lp_fence.h
parent1e926fe42a9780fd5e6574df2014a75d4af1101d (diff)
llvmpipe: move some fence functions into lp_screen.c
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_fence.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_fence.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_fence.h b/src/gallium/drivers/llvmpipe/lp_fence.h
index b80af5c6543..3c591187801 100644
--- a/src/gallium/drivers/llvmpipe/lp_fence.h
+++ b/src/gallium/drivers/llvmpipe/lp_fence.h
@@ -46,6 +46,7 @@ struct lp_fence
pipe_mutex mutex;
pipe_condvar signalled;
+ boolean issued;
unsigned rank;
unsigned count;
};
@@ -58,6 +59,11 @@ lp_fence_create(unsigned rank);
void
lp_fence_signal(struct lp_fence *fence);
+boolean
+lp_fence_signalled(struct lp_fence *fence);
+
+void
+lp_fence_wait(struct lp_fence *fence);
void
llvmpipe_init_screen_fence_funcs(struct pipe_screen *screen);
@@ -79,5 +85,11 @@ lp_fence_reference(struct lp_fence **ptr,
*ptr = f;
}
+static INLINE boolean
+lp_fence_issued(const struct lp_fence *fence)
+{
+ return fence->issued;
+}
+
#endif /* LP_FENCE_H */