mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
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>
This commit is contained in:
parent
952366a60e
commit
1665d29ee3
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue