st/mesa: fix vertex elements setup for doubles
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 10 Oct 2016 18:20:22 +0000 (20:20 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 13 Oct 2016 13:41:36 +0000 (15:41 +0200)
commitd413fbb159d0ddac16bb9d93bdda4fe598d39e17
treeb59559d33dcddafb8e5a7afa22d077b0133ed4a6
parent15fc74905b64ab41e47d5b50407596ceaeced638
st/mesa: fix vertex elements setup for doubles

Whether one or two slots are taken up by one API array depends on the
vertex shader, not on how the array is configured. When an array is
set up with fewer components than the shader expects, the high components
are undefined.

Fixes GL45-CTS.vertex_attrib_binding.basic-inputL-case1.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom_array.c