summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/compute.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-09-24 00:19:58 -0700
committerJordan Justen <jordan.l.justen@intel.com>2015-09-29 08:23:47 -0700
commit1665d29ee3125743fd6daf3c43fc715f543d5669 (patch)
tree1bd59e145100492e66c6cb353c097bb20a13ca99 /src/mesa/main/compute.c
parent952366a60e0743ae025edaf370a233d0633edf7b (diff)
downloadexternal_mesa3d-1665d29ee3125743fd6daf3c43fc715f543d5669.zip
external_mesa3d-1665d29ee3125743fd6daf3c43fc715f543d5669.tar.gz
external_mesa3d-1665d29ee3125743fd6daf3c43fc715f543d5669.tar.bz2
mesa/cs: Add MESA_VERBOSE=api support in DispatchCompute*
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Diffstat (limited to 'src/mesa/main/compute.c')
-rw-r--r--src/mesa/main/compute.c7
1 files changed, 7 insertions, 0 deletions
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;