summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-05-16 01:19:44 +0100
committerJakob Bornecrantz <[email protected]>2009-05-16 01:50:53 +0100
commitee05658798c047876ccd9e5cd33e12eee1dd8758 (patch)
tree36d7b00b2c7dfa5bd8ef736d34b2abcb0f482871 /src/gallium/drivers
parentab95f389a59acd8f70fc6ce00d945511f0a45d8b (diff)
trace: Unwrap buffer in texture_blanket
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/trace/tr_screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c
index e659416aba2..58855a83460 100644
--- a/src/gallium/drivers/trace/tr_screen.c
+++ b/src/gallium/drivers/trace/tr_screen.c
@@ -212,10 +212,12 @@ static struct pipe_texture *
trace_screen_texture_blanket(struct pipe_screen *_screen,
const struct pipe_texture *templat,
const unsigned *ppitch,
- struct pipe_buffer *buffer)
+ struct pipe_buffer *_buffer)
{
struct trace_screen *tr_scr = trace_screen(_screen);
+ struct trace_buffer *tr_buf = trace_buffer(_buffer);
struct pipe_screen *screen = tr_scr->screen;
+ struct pipe_buffer *buffer = tr_buf->buffer;
unsigned pitch = *ppitch;
struct pipe_texture *result;