mesa: fix name returned for XFB varyings
authorTapani Pälli <tapani.palli@intel.com>
Mon, 3 Aug 2015 07:46:33 +0000 (10:46 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 13 Aug 2015 09:55:17 +0000 (12:55 +0300)
commit24695f4b2738d930a2bc71b4ebc9e5d993980cae
treeb5d23646e05f7720042ce67d69a5ceedd16ce757
parent86a72ee48eb371566765566fc778d790bc9ce201
mesa: fix name returned for XFB varyings

_mesa_get_program_resource_name has logic to append '[0]' in name
if variable is an array, this should be skipped for XFB varyings
that have array index already appended.

v2: fix comment, change also GL_NAME_LENGTH query to match
    the behaviour

Fixes:
   ES31-CTS.program_interface_query.transform-feedback-types

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
src/mesa/main/shader_query.cpp