main: fix GL_MAX_NUM_ACTIVE_VARIABLES value for shader storage blocks
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Tue, 27 Oct 2015 08:33:01 +0000 (09:33 +0100)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 28 Oct 2015 07:40:51 +0000 (08:40 +0100)
commit74fcc4c41fe547ea5fb8e23f25fc71b25f5afe96
tree2b64e2e0748c3bdde6341184d5e5750f1ae760c9
parent03c92ffbf636ef9333f4575602e4de471ec7cdba
main: fix GL_MAX_NUM_ACTIVE_VARIABLES value for shader storage blocks

The maximum number of active variables for shader storage blocks should
take into account the specific rules for shader storage blocks, i.e. for
an active shader storage block member declared as an array, an entry
will be generated only for the first array element, regardless of its type.

Fixes 3 dEQP-GLES31.functional.* tests:

dEQP-GLES31.functional.program_interface_query.shader_storage_block.active_variables.named_block
dEQP-GLES31.functional.program_interface_query.shader_storage_block.active_variables.unnamed_block
dEQP-GLES31.functional.program_interface_query.shader_storage_block.active_variables.block_array

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/program_resource.c