diff options
author | Timothy Arceri <[email protected]> | 2017-05-15 12:28:08 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-17 10:12:04 +1000 |
commit | f96edf72b49348176b5eea0bdfe114e260dd3f99 (patch) | |
tree | 34c56bc0af9f26b58adcbb307493a0ed513fa761 /src/mesa/main/compute.c | |
parent | d1894c42efb97fe5af09f235be5658558ee24346 (diff) |
mesa: add KHR_no_error support for glDispatchCompute*()
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/compute.c')
-rw-r--r-- | src/mesa/main/compute.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c index 16bb11f64d1..cbd166b1095 100644 --- a/src/mesa/main/compute.c +++ b/src/mesa/main/compute.c @@ -266,6 +266,13 @@ dispatch_compute(GLuint num_groups_x, GLuint num_groups_y, } void GLAPIENTRY +_mesa_DispatchCompute_no_error(GLuint num_groups_x, GLuint num_groups_y, + GLuint num_groups_z) +{ + dispatch_compute(num_groups_x, num_groups_y, num_groups_z, true); +} + +void GLAPIENTRY _mesa_DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z) @@ -290,6 +297,12 @@ dispatch_compute_indirect(GLintptr indirect, bool no_error) } extern void GLAPIENTRY +_mesa_DispatchComputeIndirect_no_error(GLintptr indirect) +{ + dispatch_compute_indirect(indirect, true); +} + +extern void GLAPIENTRY _mesa_DispatchComputeIndirect(GLintptr indirect) { dispatch_compute_indirect(indirect, false); @@ -324,6 +337,19 @@ dispatch_compute_group_size(GLuint num_groups_x, GLuint num_groups_y, } void GLAPIENTRY +_mesa_DispatchComputeGroupSizeARB_no_error(GLuint num_groups_x, + GLuint num_groups_y, + GLuint num_groups_z, + GLuint group_size_x, + GLuint group_size_y, + GLuint group_size_z) +{ + dispatch_compute_group_size(num_groups_x, num_groups_y, num_groups_z, + group_size_x, group_size_y, group_size_z, + true); +} + +void GLAPIENTRY _mesa_DispatchComputeGroupSizeARB(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z) |