gallivm: Clamp indirect register indices to file_max.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 16 Sep 2010 10:45:16 +0000 (11:45 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 16 Sep 2010 19:20:49 +0000 (20:20 +0100)
commit6d173da5c84142ee64f56f4c2e9e495dc1435e91
treee12d9e2c6de5f85e4b35e043cb849c1ed1dfbe6a
parent795eb3d64a001a65d677e3168bdd056cc5385b7e
gallivm: Clamp indirect register indices to file_max.

Prevents crashes with bogus data, or bad shader translation.
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c