Mesa (master): softpipe: fix softpipe_is_buffer/texture_referenced() regression
Brian Paul
brianp at kemper.freedesktop.org
Mon Apr 20 20:58:34 UTC 2009
Module: Mesa
Branch: master
Commit: d27d79db4a52327e437146cde3fa3fb85b37de9a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d27d79db4a52327e437146cde3fa3fb85b37de9a
Author: Brian Paul <brianp at vmware.com>
Date: Mon Apr 20 14:57:00 2009 -0600
softpipe: fix softpipe_is_buffer/texture_referenced() regression
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 | 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 62e8d99..11aff81 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_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 *
More information about the mesa-commit
mailing list