diff options
author | Jason Ekstrand <[email protected]> | 2016-02-05 14:21:13 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-05 14:21:13 -0800 |
commit | 9645b8eb1f1b79e537ad8ddb683507df7bc9da58 (patch) | |
tree | 8e554a43a136b5f7951ff8734d42deb5e81c262b /src/gallium/drivers/trace/tr_context.c | |
parent | 3eebf3686be3de10cbeda8acd884e82df3e1438a (diff) | |
parent | 41875ac4edd8c884225c44c0840bd20291b410ca (diff) |
Merge branch mesa-public/master into vulkan
Diffstat (limited to 'src/gallium/drivers/trace/tr_context.c')
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index b5ab9249835..6e703f76499 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -119,7 +119,22 @@ trace_context_draw_vbo(struct pipe_context *_pipe, trace_dump_trace_flush(); - pipe->draw_vbo(pipe, info); + if (info->indirect) { + struct pipe_draw_info *_info = NULL; + + _info = MALLOC(sizeof(*_info)); + if (!_info) + return; + + memcpy(_info, info, sizeof(*_info)); + _info->indirect = trace_resource_unwrap(tr_ctx, _info->indirect); + _info->indirect_params = trace_resource_unwrap(tr_ctx, + _info->indirect_params); + pipe->draw_vbo(pipe, _info); + FREE(_info); + } else { + pipe->draw_vbo(pipe, info); + } trace_dump_call_end(); } |