From 634266c9522be9b3654f67bd28eebbd6545d3968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 23 Mar 2017 18:43:07 +0100 Subject: [PATCH] trace: add resource_commit pass-through MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit v2: fix return type to bool (Marek) Reviewed-by: Marek Olšák --- src/gallium/drivers/trace/tr_context.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index 81c1a46422b..eafee7f4fc1 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -1627,6 +1627,25 @@ trace_context_memory_barrier(struct pipe_context *_context, } +static bool +trace_context_resource_commit(struct pipe_context *_context, + struct pipe_resource *resource, + unsigned level, struct pipe_box *box, bool commit) +{ + struct trace_context *tr_context = trace_context(_context); + struct pipe_context *context = tr_context->pipe; + + trace_dump_call_begin("pipe_context", "resource_commit"); + trace_dump_arg(ptr, context); + trace_dump_arg(ptr, resource); + trace_dump_arg(uint, level); + trace_dump_arg(box, box); + trace_dump_arg(bool, commit); + trace_dump_call_end(); + + return context->resource_commit(context, resource, level, box, commit); +} + static void trace_context_set_tess_state(struct pipe_context *_context, const float default_outer_level[4], @@ -1800,6 +1819,7 @@ trace_context_create(struct trace_screen *tr_scr, TR_CTX_INIT(generate_mipmap); TR_CTX_INIT(texture_barrier); TR_CTX_INIT(memory_barrier); + TR_CTX_INIT(resource_commit); TR_CTX_INIT(set_tess_state); TR_CTX_INIT(set_shader_buffers); TR_CTX_INIT(launch_grid); -- 2.30.2