mesa: fix glGetInteger/Float/etc queries for vertex arrays attribs
authorBrian Paul <brianp@vmware.com>
Thu, 10 May 2018 01:46:32 +0000 (19:46 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 10 May 2018 14:08:11 +0000 (08:08 -0600)
commitd07466fe18522cde1acadfc597583f80b69c15b7
treec9dc41915b9d3fe45e01f4174852d34156c442f7
parent45dfa6f4e77fbb21f312eb6101db6c25acd4d483
mesa: fix glGetInteger/Float/etc queries for vertex arrays attribs

The vertex array Size and Stride attributes are now ubyte and short,
respectively.  The glGet code needed to be updated to handle those
types, but wasn't.

Fixes the new piglit test gl-1.5-get-array-attribs test.

v2: fix inadvertant whitespace change, change COLOR_ARRAY_SIZE to UBYTE,
misc fixes suggested by Justin

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106450
Fixes: d5f42f96e16 ("mesa: shrink size of gl_array_attributes (v2)")
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/main/get.c
src/mesa/main/get_hash_params.py