Mesa (master): trace: Fix is_referenced functions

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Fri Apr 17 14:04:01 UTC 2009


Module: Mesa
Branch: master
Commit: 1e42f68fd612b2a4c877b91393e5ff5bc34dbe0d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e42f68fd612b2a4c877b91393e5ff5bc34dbe0d

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Fri Apr 17 16:00:25 2009 +0200

trace: Fix is_referenced functions

---

 src/gallium/drivers/trace/tr_context.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 179c8fd..696b6a4 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -1030,11 +1030,13 @@ trace_context_destroy(struct pipe_context *_pipe)
 
 static unsigned int
 trace_is_texture_referenced( struct pipe_context *_pipe,
-			    struct pipe_texture *texture,
+			    struct pipe_texture *_texture,
 			    unsigned face, unsigned level)
 {
    struct trace_context *tr_ctx = trace_context(_pipe);
+   struct trace_texture *tr_tex = trace_texture(_texture);
    struct pipe_context *pipe = tr_ctx->pipe;
+   struct pipe_texture *texture = tr_tex->texture;
    unsigned int referenced;
 
    trace_dump_call_begin("pipe_context", "is_texture_referenced");
@@ -1053,10 +1055,12 @@ trace_is_texture_referenced( struct pipe_context *_pipe,
 
 static unsigned int
 trace_is_buffer_referenced( struct pipe_context *_pipe,
-			    struct pipe_buffer *buf)
+			    struct pipe_buffer *_buf)
 {
    struct trace_context *tr_ctx = trace_context(_pipe);
+   struct trace_buffer *tr_buf = trace_buffer(_buf);
    struct pipe_context *pipe = tr_ctx->pipe;
+   struct pipe_buffer *buf = tr_buf->buffer;
    unsigned int referenced;
 
    trace_dump_call_begin("pipe_context", "is_buffer_referenced");




More information about the mesa-commit mailing list