Mesa (master): llvmpipe: Do unswizzling in parallel when flushing for transfers.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Jun 4 12:06:21 UTC 2010
Module: Mesa
Branch: master
Commit: be5a514d4e526070ff58f12fc3d161b992ff205c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=be5a514d4e526070ff58f12fc3d161b992ff205c
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Jun 4 12:22:14 2010 +0100
llvmpipe: Do unswizzling in parallel when flushing for transfers.
---
src/gallium/drivers/llvmpipe/lp_flush.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c
index 884e623..0cd288b 100644
--- a/src/gallium/drivers/llvmpipe/lp_flush.c
+++ b/src/gallium/drivers/llvmpipe/lp_flush.c
@@ -120,6 +120,13 @@ llvmpipe_flush_resource(struct pipe_context *pipe,
if (do_not_block)
return FALSE;
+ /*
+ * Do the unswizzling in parallel.
+ *
+ * XXX: Don't abuse the PIPE_FLUSH_FRAME flag for this.
+ */
+ flush_flags |= PIPE_FLUSH_FRAME;
+
llvmpipe_flush(pipe, flush_flags, &fence);
if (fence) {
More information about the mesa-commit
mailing list