diff options
author | Bruce Cherniak <[email protected]> | 2016-03-09 19:30:00 -0600 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2016-03-14 14:07:48 -0500 |
commit | e9d68cc3da07c4b566799bbaec2434bfc21d3e0c (patch) | |
tree | e84d07138133a29b1398de4355cebecf4fae3b1d /src/gallium/drivers/swr/swr_query.cpp | |
parent | 7a2333e4efbaefe6bd6db87b9b2443737c89f01e (diff) |
gallium/swr: Resource management
Better tracking of resource state and synchronization.
A follow on commit will clean up resource functions into a new
swr_resource.cpp file.
Reviewed-By: George Kyriazis <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_query.cpp')
-rw-r--r-- | src/gallium/drivers/swr/swr_query.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/swr_query.cpp b/src/gallium/drivers/swr/swr_query.cpp index 2510b3ae39c..810c50b2f8f 100644 --- a/src/gallium/drivers/swr/swr_query.cpp +++ b/src/gallium/drivers/swr/swr_query.cpp @@ -62,7 +62,7 @@ swr_destroy_query(struct pipe_context *pipe, struct pipe_query *q) struct swr_query *pq = swr_query(q); if (pq->fence) { - if (!swr_is_fence_done(swr_fence(pq->fence))) { + if (!swr_is_fence_pending(pq->fence)) { swr_fence_submit(swr_context(pipe), pq->fence); swr_fence_finish(pipe->screen, pq->fence, 0); } @@ -85,7 +85,7 @@ swr_gather_stats(struct pipe_context *pipe, struct swr_query *pq) SWR_STATS swr_stats = {0}; if (pq->fence) { - if (!swr_is_fence_done(swr_fence(pq->fence))) { + if (!swr_is_fence_pending(pq->fence)) { swr_fence_submit(ctx, pq->fence); swr_fence_finish(pipe->screen, pq->fence, 0); } @@ -180,7 +180,7 @@ swr_get_query_result(struct pipe_context *pipe, struct swr_query *pq = swr_query(q); if (pq->fence) { - if (!swr_is_fence_done(swr_fence(pq->fence))) { + if (!swr_is_fence_pending(pq->fence)) { swr_fence_submit(ctx, pq->fence); if (!wait) return FALSE; |