glsl_to_tgsi: allocate and enlarge arrays for temporaries on demand
authorMarek Olšák <marek.olsak@amd.com>
Sat, 23 Aug 2014 22:56:12 +0000 (00:56 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 1 Sep 2014 19:03:58 +0000 (21:03 +0200)
commit482def592fede9c4c2f1e6944df42e8319dd6b78
tree0c4b853210256baa0d0e7d007a2c69064cea9411
parentb419c651fbbf3660d7b53623dfa2e5a4c9bd3b98
glsl_to_tgsi: allocate and enlarge arrays for temporaries on demand

This fixes crashes if the number of temporaries is greater than 4096.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66184

v2: added fail paths for realloc failures

Cc: 10.2 10.3 mesa-stable@lists.freedesktop.org
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp