summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-12-14 15:09:38 +1100
committerTimothy Arceri <[email protected]>2019-01-02 09:53:01 +1100
commitdd061eb0442a25cad0cc775103ae31d62280fa44 (patch)
tree54782fc411756907d0d8ff5aa1ec6e2f39c059d3 /src
parent8f98ff362c1e967b2997682f0b1b694a6b1bed98 (diff)
tgsi/scan: fix loop exit point in tgsi_scan_tess_ctrl()
This just happened not to crash/assert because all loops have at least 1 if-statement and due to a second bug we end up matching the same ENDIF to exit both the iteration over the if-statment and the loop. The second bug is fixed in the following patch. Fixes: 386d165d8d09 ("tgsi/scan: add a new pass that analyzes tess factor writes") Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index d776fc7bef1..d7f7a172ee1 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -1172,7 +1172,7 @@ tgsi_scan_tess_ctrl(const struct tgsi_token *tokens,
case TGSI_OPCODE_BGNLOOP:
cond_block_tf_writemask |=
- get_block_tessfactor_writemask(info, &parse, TGSI_OPCODE_ENDIF);
+ get_block_tessfactor_writemask(info, &parse, TGSI_OPCODE_ENDLOOP);
continue;
case TGSI_OPCODE_BARRIER: