tgsi: fix out-of-bounds access for cube arrays
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 26 Mar 2015 23:06:37 +0000 (19:06 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 27 Mar 2015 01:02:09 +0000 (21:02 -0400)
commit626434893a048f3ba89a751998fcb3789a3dbb96
tree1a061b5cc6a54110959211bfbc73249221d0d149
parentf95a6b2ff4237181fd7e9622e19e9aa0719a1f21
tgsi: fix out-of-bounds access for cube arrays

The CUBE_ARRAY case uses r[4]. Make sure that the stack variable is
there.

Noticed by Coverity.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c