Mesa (master): gallium/trace: check bind_vertex_sampler_states and set_vertex_sampler_views
Patrice Mandin
pmandin at kemper.freedesktop.org
Sun Dec 5 11:15:17 UTC 2010
Module: Mesa
Branch: master
Commit: ccacabe86c30623b00997f8ec0b4cd01866ee46a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccacabe86c30623b00997f8ec0b4cd01866ee46a
Author: Xavier Chantry <chantry.xavier at gmail.com>
Date: Sun Dec 5 12:12:20 2010 +0100
gallium/trace: check bind_vertex_sampler_states and set_vertex_sampler_views
Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
Reviewed-by: Jakob Bornecrantz <wallbraker at gmail.com>
Signed-off-by: Patrice Mandin <patmandin at gmail.com>
---
src/gallium/drivers/trace/tr_context.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 2fdb6c9..eaabae8 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -314,6 +314,9 @@ trace_context_bind_vertex_sampler_states(struct pipe_context *_pipe,
struct trace_context *tr_ctx = trace_context(_pipe);
struct pipe_context *pipe = tr_ctx->pipe;
+ if (!pipe->bind_vertex_sampler_states)
+ return;
+
trace_dump_call_begin("pipe_context", "bind_vertex_sampler_states");
trace_dump_arg(ptr, pipe);
@@ -980,6 +983,9 @@ trace_context_set_vertex_sampler_views(struct pipe_context *_pipe,
struct pipe_sampler_view *unwrapped_views[PIPE_MAX_VERTEX_SAMPLERS];
unsigned i;
+ if (!pipe->set_vertex_sampler_views)
+ return;
+
for(i = 0; i < num; ++i) {
tr_view = trace_sampler_view(views[i]);
unwrapped_views[i] = tr_view ? tr_view->sampler_view : NULL;
More information about the mesa-commit
mailing list