radeonsi: increase array size for shader inputs and outputs
authorMarek Olšák <maraeo@gmail.com>
Tue, 14 May 2013 17:37:17 +0000 (19:37 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 21 May 2013 15:47:44 +0000 (17:47 +0200)
commit2eac0aa1d8d6fbdbbee43e44b24cff7f71733764
tree18c988bb9b8b34f3ddba2639686b4bacba078c21
parent9772284df2cba1dd30ec401fd19c5a212197b411
radeonsi: increase array size for shader inputs and outputs

and add assertions to prevent buffer overflow. This fixes corruption
of the si_shader struct.

NOTE: This is a candidate for the 9.1 branch.

[ Cherry-pick of r600g commit da33f9b919039442e9ab51f9b1d1c83a73607133 ]

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h