tgsi/scan: fix loop exit point in tgsi_scan_tess_ctrl()
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 14 Dec 2018 04:09:38 +0000 (15:09 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 1 Jan 2019 22:53:01 +0000 (09:53 +1100)
commitdd061eb0442a25cad0cc775103ae31d62280fa44
tree54782fc411756907d0d8ff5aa1ec6e2f39c059d3
parent8f98ff362c1e967b2997682f0b1b694a6b1bed98
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 <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c