summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/trace/tr_buffer.h')
-rw-r--r--src/gallium/drivers/trace/tr_buffer.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/trace/tr_buffer.h b/src/gallium/drivers/trace/tr_buffer.h
index e9e4d354dad..bb8a3b2c3aa 100644
--- a/src/gallium/drivers/trace/tr_buffer.h
+++ b/src/gallium/drivers/trace/tr_buffer.h
@@ -47,13 +47,11 @@ struct trace_buffer
static INLINE struct trace_buffer *
-trace_buffer(struct trace_screen *tr_scr,
- struct pipe_buffer *buffer)
+trace_buffer(struct pipe_buffer *buffer)
{
if(!buffer)
return NULL;
- assert(tr_scr);
- assert(buffer->screen == &tr_scr->base);
+ (void)trace_screen(buffer->screen);
return (struct trace_buffer *)buffer;
}