summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-11-08 09:56:02 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-11-08 09:56:02 -0800
commit0525cb1273a51343fba0a94d01d115e4256d1db2 (patch)
treeb89769218d4f973f739abfe902a5ddf5b9979cb3 /src/gallium/drivers
parentee28a69188d5054f996d0f5fc12820b024ef96a6 (diff)
r300g: Fix is_buffer_referenced.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_context.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index b520e5929e..43d7ff3ed3 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -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)