From: Corbin Simpson Date: Sun, 8 Nov 2009 17:56:02 +0000 (-0800) Subject: r300g: Fix is_buffer_referenced. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0525cb1273a51343fba0a94d01d115e4256d1db2;p=mesa.git r300g: Fix is_buffer_referenced. --- 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)