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 76b3fce..e8f4d19 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 */
 
    /*