diff options
author | Jakob Bornecrantz <[email protected]> | 2009-04-17 15:52:05 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-04-17 16:03:01 +0200 |
commit | 5800e0aad1e803fbe2a1e1a7f8abcdff58699901 (patch) | |
tree | 68907cb724217711d81eaeeb6f158495c4fb5653 /src/gallium/drivers/trace/tr_buffer.h | |
parent | dbb90436f8385a33b9938c66a0fa3eff8c36a4cc (diff) |
trace: Simplify trace_buffer function
Diffstat (limited to 'src/gallium/drivers/trace/tr_buffer.h')
-rw-r--r-- | src/gallium/drivers/trace/tr_buffer.h | 6 |
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; } |