diff options
author | Eric Anholt <[email protected]> | 2015-04-14 11:24:00 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-04-15 16:50:22 -0700 |
commit | bd957b1b79124c5061af1eddf16932793e806d87 (patch) | |
tree | 67a6a55c330dd929a061f01c55ad2ca01c7a5859 /src/gallium/drivers/vc4/vc4_context.h | |
parent | e1d095053b2b50109f77fd9eb524e8e1c7d025af (diff) |
vc4: Hook up VC4_DEBUG=perf to some useful printfs.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |