tgsi: fix coverity out-of-bounds warning
authorRob Clark <robclark@freedesktop.org>
Thu, 26 May 2016 15:11:32 +0000 (11:11 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 26 May 2016 19:17:49 +0000 (15:17 -0400)
commit6e51fe75a4997328625753c9409b328f207d5e51
tree37263384d353b0ce27a61ad5340365db1ce80359
parent3d66ba971e984a1c58eda6a938a37f58ba6f8134
tgsi: fix coverity out-of-bounds warning

CID 1271532 (#1 of 1): Out-of-bounds read (OVERRUN)34. overrun-local:
Overrunning array of 2 16-byte elements at element index 2 (byte offset
32) by dereferencing pointer &inst.Dst[i].

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_text.c