OSDN Git Service

softpipe: return PIPE_UNREFERENCED in softpipe_is_buffer/texture_referenced()
authorBrian Paul <brianp@vmware.com>
Tue, 28 Apr 2009 20:29:27 +0000 (14:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 28 Apr 2009 20:29:27 +0000 (14:29 -0600)
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

index 11aff81..62e8d99 100644 (file)
@@ -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 *