aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace/tr_context.h')
-rw-r--r--src/gallium/drivers/trace/tr_context.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_context.h b/src/gallium/drivers/trace/tr_context.h
index dadbe561180..90883d71239 100644
--- a/src/gallium/drivers/trace/tr_context.h
+++ b/src/gallium/drivers/trace/tr_context.h
@@ -50,10 +50,17 @@ struct trace_context
};
+void
+trace_context_check(const struct pipe_context *pipe);
+
+
static INLINE struct trace_context *
trace_context(struct pipe_context *pipe)
{
assert(pipe);
+#ifdef DEBUG
+ trace_context_check(pipe);
+#endif
return (struct trace_context *)pipe;
}