mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nir: Fix the control flow tests for nir_loop_first_block changes
Commit 2ed17d46de changed
nir_loop_first_cf_node and friends to return a nir_block instead of a
nir_cf_node. This broke one of the NIR control flow tests.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98128
This commit is contained in:
parent
e3f586c98d
commit
325b3fd668
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ TEST_F(nir_cf_test, delete_break_in_loop)
|
|||
* }
|
||||
*/
|
||||
nir_block *block_0 = nir_start_block(b.impl);
|
||||
nir_block *block_1 = nir_cf_node_as_block(nir_loop_first_cf_node(loop));
|
||||
nir_block *block_1 = nir_loop_first_block(loop);
|
||||
nir_block *block_2 = nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node));
|
||||
nir_block *block_3 = b.impl->end_block;
|
||||
ASSERT_EQ(nir_cf_node_block, block_0->cf_node.type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue