diff options
author | José Fonseca <[email protected]> | 2010-05-25 14:39:25 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-05-25 14:39:25 +0100 |
commit | 378796fe119ea61742df914b4de9ca4ed6bcc223 (patch) | |
tree | ba6458472e27a066bb9754c3141c5361072f546f /src/gallium/drivers/llvmpipe/lp_query.c | |
parent | ba404c8f2a7e7ae25cccb66bdf378b4106d2a4df (diff) |
llvmpipe: Stop relying on PIPE_FLUSH_TEXTURE_CACHE/PIPE_FLUSH_RENDER_CACHE magic.
Flush means flush, i.e., all previous operations should be visible from
other contexts.
This does not imply unswizzling tiles, since unswizzling should be done on
a needed basis for any context.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_query.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_query.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_query.c b/src/gallium/drivers/llvmpipe/lp_query.c index c23e9839063..080e169ea11 100644 --- a/src/gallium/drivers/llvmpipe/lp_query.c +++ b/src/gallium/drivers/llvmpipe/lp_query.c @@ -34,6 +34,7 @@ #include "pipe/p_defines.h" #include "util/u_memory.h" #include "lp_context.h" +#include "lp_flush.h" #include "lp_query.h" #include "lp_rast.h" #include "lp_rast_priv.h" @@ -82,7 +83,7 @@ llvmpipe_get_query_result(struct pipe_context *pipe, struct llvmpipe_query *pq = llvmpipe_query(q); if (!pq->done) { - lp_setup_flush(llvmpipe->setup, TRUE); + lp_setup_flush(llvmpipe->setup, 0); } if (pq->done) { @@ -105,7 +106,7 @@ llvmpipe_begin_query(struct pipe_context *pipe, struct pipe_query *q) */ if (pq->binned) { struct pipe_fence_handle *fence; - pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE, &fence); + llvmpipe_flush(pipe, 0, &fence); if (fence) { pipe->screen->fence_finish(pipe->screen, fence, 0); pipe->screen->fence_reference(pipe->screen, &fence, NULL); |