summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-05-29 03:34:00 +0200
committerMarek Olšák <[email protected]>2011-05-29 16:17:11 +0200
commitf133ff51a2b40da5381cc2b988cc1e17e12a1bf0 (patch)
tree55c7380edb365f45f15a7ca784912e43290c7aeb /src/gallium/drivers/trace/tr_context.c
parentb9e8cb0a5904bdd60937627ffef4b93dc679c064 (diff)
trace: implement texture_barrier
Diffstat (limited to 'src/gallium/drivers/trace/tr_context.c')
-rw-r--r--src/gallium/drivers/trace/tr_context.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 14e8b0ce8c4..254976e099c 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -1441,6 +1441,21 @@ static void trace_render_condition(struct pipe_context *_context,
}
+static void trace_texture_barrier(struct pipe_context *_context)
+{
+ struct trace_context *tr_context = trace_context(_context);
+ struct pipe_context *context = tr_context->pipe;
+
+ trace_dump_call_begin("pipe_context", "texture_barrier");
+
+ trace_dump_arg(ptr, context);
+
+ trace_dump_call_end();
+
+ context->texture_barrier(context);
+}
+
+
static const struct debug_named_value rbug_blocker_flags[] = {
{"before", 1, NULL},
{"after", 2, NULL},
@@ -1519,6 +1534,7 @@ trace_context_create(struct trace_screen *tr_scr,
tr_ctx->base.clear_depth_stencil = trace_context_clear_depth_stencil;
tr_ctx->base.flush = trace_context_flush;
tr_ctx->base.render_condition = pipe->render_condition ? trace_render_condition : NULL;
+ tr_ctx->base.texture_barrier = pipe->texture_barrier ? trace_texture_barrier : NULL;
tr_ctx->base.get_transfer = trace_context_get_transfer;
tr_ctx->base.transfer_destroy = trace_context_transfer_destroy;