diff options
author | Corbin Simpson <[email protected]> | 2009-11-08 09:56:02 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-11-08 09:56:02 -0800 |
commit | 0525cb1273a51343fba0a94d01d115e4256d1db2 (patch) | |
tree | b89769218d4f973f739abfe902a5ddf5b9979cb3 /src/gallium/drivers/r300 | |
parent | ee28a69188d5054f996d0f5fc12820b024ef96a6 (diff) |
r300g: Fix is_buffer_referenced.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.c | 7 |
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 b520e5929e2..43d7ff3ed36 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) |