aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: