diff options
author | Jordan Justen <[email protected]> | 2015-09-17 11:14:45 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-09-24 19:15:13 -0700 |
commit | d11d018ce38b76a580242d64e61e8e30dad035e8 (patch) | |
tree | fe4af75361501903afe069991ac214c5dabe53a0 /src/mesa/main/compute.c | |
parent | 12cf91db0236291ebaff71f602d929064b1ec096 (diff) |
mesa/cs: Implement glDispatchComputeIndirect
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa/main/compute.c')
-rw-r--r-- | src/mesa/main/compute.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c index f67ffbb6bfa..a0120cf0c64 100644 --- a/src/mesa/main/compute.c +++ b/src/mesa/main/compute.c @@ -45,10 +45,8 @@ _mesa_DispatchComputeIndirect(GLintptr indirect) { GET_CURRENT_CONTEXT(ctx); - if (ctx->Extensions.ARB_compute_shader) { - assert(!"TODO"); - } else { - _mesa_error(ctx, GL_INVALID_OPERATION, - "unsupported function (glDispatchComputeIndirect) called"); - } + if (!_mesa_validate_DispatchComputeIndirect(ctx, indirect)) + return; + + ctx->Driver.DispatchComputeIndirect(ctx, indirect); } |