mesa/cs: Add MESA_VERBOSE=api support in DispatchCompute*
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 24 Sep 2015 07:19:58 +0000 (00:19 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 29 Sep 2015 15:23:47 +0000 (08:23 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/main/compute.c

index a0120cf0c64f3313bfb1bd6cda9d8ec1299f360e..8bc3bcd25a0d1a7d9cd82f669e3fdc52324489c1 100644 (file)
@@ -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;