st/mesa: Don't set atomic counter size != 0 if MAX_SHADER_BUFFERS == 0.
authorEric Anholt <eric@anholt.net>
Wed, 1 Aug 2018 23:07:45 +0000 (16:07 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 25 Apr 2019 00:24:11 +0000 (17:24 -0700)
commit97316d378379d6d440f285fdccd81e9d08b3397c
tree82fa6ddd5381da9614af804495d7e5d929060bf0
parent2812ef2a26f4ab87d068092b1a6fa7c0dcc58202
st/mesa: Don't set atomic counter size != 0 if MAX_SHADER_BUFFERS == 0.

This is just asking for tests to get confused about the HW supporting
atomics in this shader stage or not, such as
dEQP-GLES31.functional.shaders.opaque_type_indexing.atomic_counter.const_expression_vertex.

v2: Rebase on the other atomic cleanups that have happened since posting.
v3: Commit message tweak by Marek.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c