diff options
author | Rob Clark <[email protected]> | 2015-09-09 18:28:55 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2015-09-13 11:08:27 -0400 |
commit | 86358e949eaa13c075338901024d0e1009fa7e99 (patch) | |
tree | f12fb61ec1411f039a1769ad58d41cba09ed465b /src/gallium/auxiliary/tgsi/tgsi_scan.h | |
parent | d6fbcf6ee28c273b37bf293aea5faf77253029a3 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_scan.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index c5900bc05d4..42539ee9f45 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -113,6 +113,11 @@ struct tgsi_shader_info unsigned indirect_files_written; unsigned properties[TGSI_PROPERTY_COUNT]; /* index with TGSI_PROPERTY_ */ + + /** + * Max nesting limit of loops/if's + */ + unsigned max_depth; }; extern void |