From 1665d29ee3125743fd6daf3c43fc715f543d5669 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 24 Sep 2015 00:19:58 -0700 Subject: [PATCH] mesa/cs: Add MESA_VERBOSE=api support in DispatchCompute* MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jordan Justen Reviewed-by: Kristian Høgsberg --- src/mesa/main/compute.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c index a0120cf..8bc3bcd 100644 --- a/src/mesa/main/compute.c +++ b/src/mesa/main/compute.c @@ -34,6 +34,10 @@ _mesa_DispatchCompute(GLuint num_groups_x, GET_CURRENT_CONTEXT(ctx); const GLuint num_groups[3] = { num_groups_x, num_groups_y, num_groups_z }; + if (MESA_VERBOSE & VERBOSE_API) + _mesa_debug(ctx, "glDispatchCompute(%d, %d, %d)\n", + num_groups_x, num_groups_y, num_groups_z); + if (!_mesa_validate_DispatchCompute(ctx, num_groups)) return; @@ -45,6 +49,9 @@ _mesa_DispatchComputeIndirect(GLintptr indirect) { GET_CURRENT_CONTEXT(ctx); + if (MESA_VERBOSE & VERBOSE_API) + _mesa_debug(ctx, "glDispatchComputeIndirect(%d)\n", indirect); + if (!_mesa_validate_DispatchComputeIndirect(ctx, indirect)) return; -- 2.7.4