freedreno/a3xx/compiler: overflow in trans_endif
authorRob Clark <robclark@freedesktop.org>
Sun, 2 Mar 2014 13:48:08 +0000 (08:48 -0500)
committerRob Clark <robclark@freedesktop.org>
Sun, 2 Mar 2014 16:26:35 +0000 (11:26 -0500)
commitecb71cfa66f4257661579a0afa5f9c56c7dbfce2
tree7f7c4a96e61a330a802e02f2633328b5ef5af003
parente0007f733dfffff2b5c3729546d6c16ecba6faa9
freedreno/a3xx/compiler: overflow in trans_endif

The logic to count number of block outputs was out of sync with the
actual array construction.  But to simplify / make things less fragile,
we can just allocate the arrays for worst case size.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c