diff options
author | Rob Clark <[email protected]> | 2018-12-05 10:51:16 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-12-07 13:49:21 -0500 |
commit | 5c2c1f0a2d5cec771b6cbfadf43f44a632ff57fc (patch) | |
tree | 8e5ff7e1c8cce27bdad6fded08494c746cda3f18 /src/freedreno/ir3/ir3_shader.h | |
parent | 9517037bdcd997fbffc0b5b07eede0e6a114ece3 (diff) |
freedreno/ir3: track max flow control depth for a5xx/a6xx
Rather than just hard-coding BRANCHSTACK size.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_shader.h')
-rw-r--r-- | src/freedreno/ir3/ir3_shader.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h index bc47160d6ea..418c77ae8b0 100644 --- a/src/freedreno/ir3/ir3_shader.h +++ b/src/freedreno/ir3/ir3_shader.h @@ -295,6 +295,10 @@ struct ir3_shader_variant { struct ir3_info info; struct ir3 *ir; + /* Levels of nesting of flow control: + */ + unsigned branchstack; + /* the instructions length is in units of instruction groups * (4 instructions for a3xx, 16 instructions for a4xx.. each * instruction is 2 dwords): |