From be5a514d4e526070ff58f12fc3d161b992ff205c Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Fri, 4 Jun 2010 12:22:14 +0100 Subject: llvmpipe: Do unswizzling in parallel when flushing for transfers. --- src/gallium/drivers/llvmpipe/lp_flush.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium') diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c index 884e6238d4..0cd288bb73 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) { -- cgit v1.2.3