radeonsi: fix a subtle bounds checking corner case with 3-component attributes
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 8 Nov 2016 14:24:04 +0000 (15:24 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 16 Nov 2016 09:31:42 +0000 (10:31 +0100)
commit6403a9e0740409f8e410b115d48db3a1324aae2c
tree965294e06f40d0edb2866a944d89077a55271d2b
parent50c95d0c546139cb9fd8bafe7d873ce1f35f16b3
radeonsi: fix a subtle bounds checking corner case with 3-component attributes

I'm also sending out a piglit test, gl-2.0/vertexattribpointer-size-3,
which exposes this corner case.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h