gallivm: allow large numbers of temporaries
authorZack Rusin <zackr@vmware.com>
Tue, 4 Feb 2014 02:40:24 +0000 (21:40 -0500)
committerZack Rusin <zackr@vmware.com>
Thu, 6 Feb 2014 00:40:53 +0000 (19:40 -0500)
commit8507afc97fa3323c89ee4cd1359d2fa61015bcd0
tree921d6a4bc6810372e668f75e96cc68c0a8c5f90e
parent5eeb12c0bcd3d25fee9749d797f8541a96935192
gallivm: allow large numbers of temporaries

The number of allowed temporaries increases almost with every
iteration of an api. We used to support 128, then we started
increasing and the newer api's support 4096+. So if we notice
that the number of temporaries is larger than our statically
allocated storage would allow we just treat them as indexable
temporaries and allocate them as an array from the start.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_limits.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c