From ba36312fbd079658edc86015852f519c8290a09a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 19 Dec 2018 21:34:44 -0800 Subject: v3d: Hook up perf_debug() output to GL_ARB_debug output as well. This is the right channel to report these things, so that end-users don't need to know each driver's custom debug options. --- src/gallium/drivers/v3d/v3d_context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/v3d/v3d_context.h') diff --git a/src/gallium/drivers/v3d/v3d_context.h b/src/gallium/drivers/v3d/v3d_context.h index 7f03836d9ce..9f52342d2dd 100644 --- a/src/gallium/drivers/v3d/v3d_context.h +++ b/src/gallium/drivers/v3d/v3d_context.h @@ -465,6 +465,8 @@ struct v3d_blend_state { #define perf_debug(...) do { \ if (unlikely(V3D_DEBUG & V3D_DEBUG_PERF)) \ fprintf(stderr, __VA_ARGS__); \ + if (unlikely(v3d->debug.debug_message)) \ + pipe_debug_message(&v3d->debug, PERF_INFO, __VA_ARGS__); \ } while (0) #define foreach_bit(b, mask) \ -- cgit v1.2.3