From be5a514d4e526070ff58f12fc3d161b992ff205c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 4 Jun 2010 12:22:14 +0100 Subject: [PATCH] llvmpipe: Do unswizzling in parallel when flushing for transfers. --- src/gallium/drivers/llvmpipe/lp_flush.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c index 884e6238d4c..0cd288bb73a 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) { -- 2.30.2