spirv: Properly size the src[] array.
authorMatt Turner <mattst88@gmail.com>
Mon, 16 May 2016 19:48:00 +0000 (12:48 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 18 May 2016 18:09:37 +0000 (11:09 -0700)
commitb1e6d069daeda87cb7e14a45a0e4438cc0b399d0
tree4c66c1c6c8bdd079dd087a4f60d04732442c561b
parent0a548eb56fba1ec7e32ea116d022327baaae8d21
spirv: Properly size the src[] array.

Operations like nir_op_bitfield_insert have four arguments, and Coverity
isn't privy to the fact that 4-argument operations aren't possible here,
so it thinks this can lead to memory corruption. Just increase the size
of the array to quell any fears.
src/compiler/spirv/spirv_to_nir.c