diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2016-09-10 14:20:03 +0200 |
---|---|---|
committer | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2016-09-29 21:27:56 +0200 |
commit | d71ecdd39bc2d4bba73088a5dc3ca6586fc96925 (patch) | |
tree | a661df91d7bf6c068fdee4acc78eb698093b4598 | |
parent | 9ef49e252d094ab254392e885ac817c8b7e46906 (diff) |
shader_runner: add support for glDispatchComputeGroupSizeARB()
This allows to dispatch compute shaders with a variable local size
using the new "compute group size" command.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
-rw-r--r-- | tests/shaders/shader_runner.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index cadac182a..fe91e34e8 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -2924,6 +2924,13 @@ piglit_display(void) glMemoryBarrier(GL_ALL_BARRIER_BITS); glDispatchCompute(x, y, z); glMemoryBarrier(GL_ALL_BARRIER_BITS); + } else if (sscanf(line, + "compute group size %d %d %d %d %d %d", + &x, &y, &z, &w, &h, &l) == 6) { + program_must_be_in_use(); + glMemoryBarrier(GL_ALL_BARRIER_BITS); + glDispatchComputeGroupSizeARB(x, y, z, w, h, l); + glMemoryBarrier(GL_ALL_BARRIER_BITS); } else if (string_match("draw rect tex", line)) { program_must_be_in_use(); program_subroutine_uniforms(); |