st/mesa: expose ARB_compute_variable_group_size
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 7 Sep 2016 16:00:16 +0000 (18:00 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 6 Oct 2016 22:18:57 +0000 (00:18 +0200)
commit590734fa0d2c97035eae33278cce6065c98b880f
tree4d7aabc1dda47faac632e1b0a1bbc58e74762d04
parentdfd7734cb785268acd914590733dcb5a30e873a1
st/mesa: expose ARB_compute_variable_group_size

This extension is only exposed if the underlying driver supports
ARB_compute_shader and if PIPE_COMPUTE_MAX_VARIABLE_THREADS_PER_BLOCK
is set.

v3: - initialize max_variable_threads_per_block to 0
v2: - expose the ext based on that new cap

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_extensions.c