diff options
author | Axel Davy <[email protected]> | 2016-11-12 22:24:04 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:23 +0100 |
commit | 7a7eeefd7dd858682244e43eb5cb0d2c84fb0b07 (patch) | |
tree | eca753808314581d1a433e2f8ebfe694f10535d8 /src/gallium/state_trackers/nine/nine_queue.c | |
parent | ddb6f1d2d138109b5716baf4d77683d5bf6cffc8 (diff) |
st/nine: Add nine_context_get_pipe_acquire/release
See commit for description.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_queue.c')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_queue.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/nine_queue.c b/src/gallium/state_trackers/nine/nine_queue.c index 885b0ab6873..9f0bf8bad77 100644 --- a/src/gallium/state_trackers/nine/nine_queue.c +++ b/src/gallium/state_trackers/nine/nine_queue.c @@ -204,6 +204,15 @@ nine_queue_alloc(struct nine_queue_pool* ctx, unsigned space) return cmdbuf->mem_pool + offset; } +/* Returns the current queue flush state. + * TRUE nothing flushed + * FALSE one ore more instructions queued flushed. */ +bool +nine_queue_no_flushed_work(struct nine_queue_pool* ctx) +{ + return (ctx->tail == ctx->head); +} + /* Returns the current queue empty state. * TRUE no instructions queued. * FALSE one ore more instructions queued. */ |