mesa/main: validate name syntax for array variables only
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 13 May 2015 10:18:31 +0000 (12:18 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Wed, 20 May 2015 05:24:53 +0000 (07:24 +0200)
commit4ee69a97bb0af0cc216539c48b246ea2abf8f208
tree39961becc8135e578cb4f9941ec3773bdc5733e3
parent1b052906763a36465e384366b875235b962ac143
mesa/main: validate name syntax for array variables only

From ARB_program_interface_query:

 "Note that if an interface enumerates a single active resource list
 entry for an array variable (e.g., "a[0]"), a <name> identifying
 any array element other than the first (e.g., "a[1]") is not
 considered to match."

It doesn't apply to arrays of interface blocks but just to array
variables.

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