OSDN Git Service

gallivm: increase nesting limit to 66
authorRoland Scheidegger <sroland@vmware.com>
Thu, 18 Apr 2013 15:18:15 +0000 (17:18 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 20 Apr 2013 00:27:53 +0000 (02:27 +0200)
commit443950c6aa1188964b4d8d5f6c7499c3a93a88b2
treefc2c48c86dc82fb1e39dd83af6d96cc0c3195474
parent12eab7cc564a6928197f9b87ded9e368e56976f0
gallivm: increase nesting limit to 66

This is still not really correct, since at least for sm 4.0
the nesting limit is 64 per subroutine, and subroutine nesting itself
has a limit of 32, so since we have a flat stack we'd need 32*64.
But this should probably be better fixed with per-subroutine stacks,
since otherwise these structures get really big (like 100kB for the
lp_exec_mask).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_limits.h