Mesa (master): softpipe: return PIPE_UNREFERENCED in softpipe_is_buffer/ texture_referenced()
Brian Paul
brianp at kemper.freedesktop.org
Tue Apr 28 20:30:31 UTC 2009
Module: Mesa
Branch: master
Commit: 46ddcbc1a9e70d5dba257e6421eb69ed942dd1da
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=46ddcbc1a9e70d5dba257e6421eb69ed942dd1da
Author: Brian Paul <brianp at vmware.com>
Date: Tue Apr 28 14:29:27 2009 -0600
softpipe: return PIPE_UNREFERENCED in softpipe_is_buffer/texture_referenced()
This allows the engine demo to run again (avoid crash in VBO code).
This stuff still needs to be revisited someday though...
---
src/gallium/drivers/softpipe/sp_context.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_context.c b/src/gallium/drivers/softpipe/sp_context.c
index 11aff81..62e8d99 100644
--- a/src/gallium/drivers/softpipe/sp_context.c
+++ b/src/gallium/drivers/softpipe/sp_context.c
@@ -126,14 +126,14 @@ softpipe_is_texture_referenced( struct pipe_context *pipe,
struct pipe_texture *texture,
unsigned face, unsigned level)
{
- return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
+ return PIPE_UNREFERENCED;
}
static unsigned int
softpipe_is_buffer_referenced( struct pipe_context *pipe,
struct pipe_buffer *buf)
{
- return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
+ return PIPE_UNREFERENCED;
}
struct pipe_context *
More information about the mesa-commit
mailing list