r300g: Fix is_buffer_referenced.

This commit is contained in:
Corbin Simpson 2009-11-08 09:56:02 -08:00
parent ee28a69188
commit 0525cb1273

View 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)