r300g: Fix is_buffer_referenced.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 8 Nov 2009 17:56:02 +0000 (09:56 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sun, 8 Nov 2009 17:56:02 +0000 (09:56 -0800)
src/gallium/drivers/r300/r300_context.c

index b520e5929e20a28bad43c6c50eb846ca4cd5fe40..43d7ff3ed364cabaa059b2165e937034a430e048 100644 (file)
@@ -89,8 +89,11 @@ static unsigned int
 r300_is_buffer_referenced(struct pipe_context *pipe,
                           struct pipe_buffer *buf)
 {
-    /* XXX */
-    return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
+    /* This only checks to see whether actual hardware buffers are
+     * referenced. Since we use managed BOs and transfers, it's actually not
+     * possible for pipe_buffers to ever reference the actual hardware, so
+     * buffers are never referenced. */
+    return 0;
 }
 
 static void r300_flush_cb(void *data)