tgsi/scan: add support to figure out max nesting depth
authorRob Clark <robclark@freedesktop.org>
Wed, 9 Sep 2015 22:28:55 +0000 (18:28 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 13 Sep 2015 15:08:27 +0000 (11:08 -0400)
commit86358e949eaa13c075338901024d0e1009fa7e99
treef12fb61ec1411f039a1769ad58d41cba09ed465b
parentd6fbcf6ee28c273b37bf293aea5faf77253029a3
tgsi/scan: add support to figure out max nesting depth

Sometimes a useful thing for compilers (or, for example, tgsi_to_nir) to
know.  And pretty trivial for scan to figure this out for us.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h