mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 13:18:09 +02:00
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: 386d165d8d ("tgsi/scan: add a new pass that analyzes tess factor writes")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
8f98ff362c
commit
dd061eb044
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue