pipebuffer: fix warnings
authorKeith Whitwell <keithw@vmware.com>
Thu, 24 Sep 2009 15:48:49 +0000 (16:48 +0100)
committerKeith Whitwell <keithw@vmware.com>
Thu, 24 Sep 2009 15:48:49 +0000 (16:48 +0100)
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c

index 109ac7c9d63121e4ee6d30bd00d0eebeb925fb13..d01f86662223da8c22ff7f28ac33700864aa2ec8 100644 (file)
@@ -542,7 +542,7 @@ fenced_buffer_list_dump(struct fenced_buffer_list *fenced_list)
       debug_printf("%10p %7u %7u\n",
                    fenced_buf,
                    fenced_buf->base.base.size,
-                   fenced_buf->base.base.reference.count);
+                   p_atomic_read(&fenced_buf->base.base.reference.count));
       curr = next; 
       next = curr->next;
    }
@@ -556,7 +556,7 @@ fenced_buffer_list_dump(struct fenced_buffer_list *fenced_list)
       debug_printf("%10p %7u %7u %10p %s\n",
                    fenced_buf,
                    fenced_buf->base.base.size,
-                   fenced_buf->base.base.reference.count,
+                   p_atomic_read(&fenced_buf->base.base.reference.count),
                    fenced_buf->fence,
                    signaled == 0 ? "y" : "n");
       curr = next;