mesa: Move _mesa_all_buffers_are_unmapped to arrayobj.c.
[mesa.git] / src / mesa / main / compute.c
index 8bc3bcd25a0d1a7d9cd82f669e3fdc52324489c1..b71430f2b12ac150a9cc79f6f4c915964eb77f95 100644 (file)
@@ -41,6 +41,9 @@ _mesa_DispatchCompute(GLuint num_groups_x,
    if (!_mesa_validate_DispatchCompute(ctx, num_groups))
       return;
 
+   if (num_groups_x == 0u || num_groups_y == 0u || num_groups_z == 0u)
+       return;
+
    ctx->Driver.DispatchCompute(ctx, num_groups);
 }
 
@@ -50,7 +53,7 @@ _mesa_DispatchComputeIndirect(GLintptr indirect)
    GET_CURRENT_CONTEXT(ctx);
 
    if (MESA_VERBOSE & VERBOSE_API)
-      _mesa_debug(ctx, "glDispatchComputeIndirect(%d)\n", indirect);
+      _mesa_debug(ctx, "glDispatchComputeIndirect(%ld)\n", (long) indirect);
 
    if (!_mesa_validate_DispatchComputeIndirect(ctx, indirect))
       return;