softpipe: fix softpipe_is_buffer/texture_referenced() regression
authorBrian Paul <brianp@vmware.com>
Mon, 20 Apr 2009 20:57:00 +0000 (14:57 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Apr 2009 20:57:00 +0000 (14:57 -0600)
Return the conservative PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE
value for now.

This fixes a bunch of regressions seen in piglit and glean.

src/gallium/drivers/softpipe/sp_context.c

index 62e8d99cfd0300c332bfe2af6a53833fdb1bb69b..11aff814791e7280c0c3b299378ed5d447fe4f02 100644 (file)
@@ -126,14 +126,14 @@ softpipe_is_texture_referenced( struct pipe_context *pipe,
                                struct pipe_texture *texture,
                                unsigned face, unsigned level)
 {
-   return PIPE_UNREFERENCED;
+   return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
 }
 
 static unsigned int
 softpipe_is_buffer_referenced( struct pipe_context *pipe,
                               struct pipe_buffer *buf)
 {
-   return PIPE_UNREFERENCED;
+   return PIPE_REFERENCED_FOR_READ | PIPE_REFERENCED_FOR_WRITE;
 }
 
 struct pipe_context *