mesa: Array uniform names are supposed to have [0] appended
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 14 Dec 2012 23:01:48 +0000 (15:01 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 19 Jan 2013 01:35:33 +0000 (17:35 -0800)
commit8ef3c83ffe538d09380baaac5c3cd86a9f97ca47
treeed379196951087c4f089013c9b7fe82a19c7b370
parent5938c7774ff973612358ca52691c3eb73171e2e7
mesa: Array uniform names are supposed to have [0] appended

This is required by OpenGL ES 3.0 and desktop OpenGL 4.2.  Previous
version were ambiguous.  This also matches the behavior of NVIDIA's
closed-source driver (version 304.64).

Fixed gles3conformance test uniform_buffer_object_getactiveuniform.

Several piglit tests expect glGetActiveUniform to *not* include the [0]
on the end.  These tests were already failing on NVIDIA, and this change
regresses them on Mesa.  Patches have been sent to the piglit mailing
list to fix the tests.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/uniforms.c