diff options
author | Marek Olšák <marek.olsak@amd.com> | 2014-01-27 21:42:07 +0100 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2014-02-25 16:05:41 +0100 |
commit | 5f61f052b5fd8e590eca652fdac381452eb9853d (patch) | |
tree | 1346f2035ad3eeebc482f4ea8a84a9179db198de /src/gallium/drivers/trace | |
parent | d26a065b7496ef69754fde6e4d0006ccb76f7f3a (diff) | |
download | external_mesa3d-5f61f052b5fd8e590eca652fdac381452eb9853d.zip external_mesa3d-5f61f052b5fd8e590eca652fdac381452eb9853d.tar.gz external_mesa3d-5f61f052b5fd8e590eca652fdac381452eb9853d.tar.bz2 |
gallium: add interface for persistent and coherent buffer mappings
Required for ARB_buffer_storage.
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 16 |
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 60ebea4..c10e010 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -1489,6 +1489,21 @@ static void trace_context_texture_barrier(struct pipe_context *_context) } +static void trace_context_memory_barrier(struct pipe_context *_context, + unsigned flags) +{ + struct trace_context *tr_context = trace_context(_context); + struct pipe_context *context = tr_context->pipe; + + trace_dump_call_begin("pipe_context", "memory_barrier"); + trace_dump_arg(ptr, context); + trace_dump_arg(uint, flags); + trace_dump_call_end(); + + context->memory_barrier(context, flags); +} + + static const struct debug_named_value rbug_blocker_flags[] = { {"before", 1, NULL}, {"after", 2, NULL}, @@ -1577,6 +1592,7 @@ trace_context_create(struct trace_screen *tr_scr, TR_CTX_INIT(clear_depth_stencil); TR_CTX_INIT(flush); TR_CTX_INIT(texture_barrier); + TR_CTX_INIT(memory_barrier); TR_CTX_INIT(transfer_map); TR_CTX_INIT(transfer_unmap); |