llvmpipe: Actually flush in lp_resource_copy()
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 28 Jun 2010 14:39:54 +0000 (15:39 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 28 Jun 2010 15:33:21 +0000 (16:33 +0100)
The cpu_access is redundant in a software rasterizer.

src/gallium/drivers/llvmpipe/lp_surface.c

index 76b3fce1fa992336adf976fdb9b6eb187fd97d29..e8f4d19395a0c667dd70ad10a5cf6bffebf0d1a6 100644 (file)
@@ -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 */
 
    /*