diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-10-22 17:38:30 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-11-09 11:37:39 +0100 |
commit | 574c59d4f935cccfa18f7054c660200f8be791ad (patch) | |
tree | b54d5075269299d19d8e194c0d3b921fbb689fea /src/util/u_queue.c | |
parent | 1b9d5ece557bc4ac1d69cc133dc533bb5a863dde (diff) | |
download | mesa-574c59d4f935cccfa18f7054c660200f8be791ad.tar.gz mesa-574c59d4f935cccfa18f7054c660200f8be791ad.tar.bz2 mesa-574c59d4f935cccfa18f7054c660200f8be791ad.zip |
u_queue: add util_queue_fence_reset
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/util/u_queue.c')
-rw-r--r-- | src/util/u_queue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 33436e0749a..2272006042f 100644 --- a/src/util/u_queue.c +++ b/src/util/u_queue.c @@ -328,8 +328,6 @@ util_queue_add_job(struct util_queue *queue, { struct util_queue_job *ptr; - assert(fence->signalled); - mtx_lock(&queue->lock); if (queue->kill_threads) { mtx_unlock(&queue->lock); @@ -339,7 +337,7 @@ util_queue_add_job(struct util_queue *queue, return; } - fence->signalled = false; + util_queue_fence_reset(fence); assert(queue->num_queued >= 0 && queue->num_queued <= queue->max_jobs); |