summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_sampler_view.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-02-17 14:58:55 +0000
committerJakob Bornecrantz <jakob@vmware.com>2011-02-18 14:46:47 +0000
commit912ad8874200c0a89bd23663dc0de378f6691140 (patch)
tree7c083ff52bf87782ed9017f10d3522b7a2926f3e /src/gallium/drivers/svga/svga_sampler_view.h
parent99d955263ba4665462f8ebd8ed643019c2cd9621 (diff)
svga: Describe svga_sampler_views for refcnt debugging
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_sampler_view.h')
-rw-r--r--src/gallium/drivers/svga/svga_sampler_view.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_sampler_view.h b/src/gallium/drivers/svga/svga_sampler_view.h
index e64665f2e5..2087c1be85 100644
--- a/src/gallium/drivers/svga/svga_sampler_view.h
+++ b/src/gallium/drivers/svga/svga_sampler_view.h
@@ -83,12 +83,16 @@ svga_validate_sampler_view(struct svga_context *svga, struct svga_sampler_view *
void
svga_destroy_sampler_view_priv(struct svga_sampler_view *v);
+void
+svga_debug_describe_sampler_view(char *buf, const struct svga_sampler_view *sv);
+
static INLINE void
svga_sampler_view_reference(struct svga_sampler_view **ptr, struct svga_sampler_view *v)
{
struct svga_sampler_view *old = *ptr;
- if (pipe_reference(&(*ptr)->reference, &v->reference))
+ if (pipe_reference_described(&(*ptr)->reference, &v->reference,
+ (debug_reference_descriptor)svga_debug_describe_sampler_view))
svga_destroy_sampler_view_priv(old);
*ptr = v;
}