From bd957b1b79124c5061af1eddf16932793e806d87 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 14 Apr 2015 11:24:00 -0700 Subject: vc4: Hook up VC4_DEBUG=perf to some useful printfs. --- src/gallium/drivers/vc4/vc4_context.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers/vc4/vc4_context.h') diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index 68eacb84fd1..d89f1974e12 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -303,6 +303,11 @@ struct vc4_depth_stencil_alpha_state { uint32_t stencil_uniforms[3]; }; +#define perf_debug(...) do { \ + if (unlikely(vc4_debug & VC4_DEBUG_PERF)) \ + fprintf(stderr, __VA_ARGS__); \ +} while (0) + static inline struct vc4_context * vc4_context(struct pipe_context *pcontext) { -- cgit v1.2.3