Mesa (master): llvmpipe: Actually flush in lp_resource_copy()

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Jun 28 08:54:47 PDT 2010


Module: Mesa
Branch: master
Commit: a9e0fda070f3d8cb656e6891b1be56aaa8ed705a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9e0fda070f3d8cb656e6891b1be56aaa8ed705a

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Jun 28 15:39:54 2010 +0100

llvmpipe: Actually flush in lp_resource_copy()

The cpu_access is redundant in a software rasterizer.

---

 src/gallium/drivers/llvmpipe/lp_surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c
index 76b3fce..e8f4d19 100644
--- a/src/gallium/drivers/llvmpipe/lp_surface.c
+++ b/src/gallium/drivers/llvmpipe/lp_surface.c
@@ -67,14 +67,14 @@ lp_resource_copy(struct pipe_context *pipe,
                            dst, subdst.face, subdst.level,
                            0, /* flush_flags */
                            FALSE, /* read_only */
-                           FALSE, /* cpu_access */
+                           TRUE, /* cpu_access */
                            FALSE); /* do_not_block */
 
    llvmpipe_flush_resource(pipe,
                            src, subsrc.face, subsrc.level,
                            0, /* flush_flags */
                            TRUE, /* read_only */
-                           FALSE, /* cpu_access */
+                           TRUE, /* cpu_access */
                            FALSE); /* do_not_block */
 
    /*



More information about the mesa-commit mailing list