summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-05-10 06:03:49 -0400
committerRob Clark <[email protected]>2015-05-10 06:03:53 -0400
commit1cbdafc47a46fa55fcd5afa9193525e694099944 (patch)
tree7265387d58229cd9c8324201784b8a05e4857149 /src/gallium/drivers/freedreno
parentda136dc07ddb6147d181c96f475b94f6281efd73 (diff)
freedreno/ir3/nir: fix build break after f752effa
Our lower if/else pass was missed when converting NIR to use linked lists rather than hashsets to track use/def sets. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c b/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
index ae36019ed5f..dc9e4626f27 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_nir_lower_if_else.c
@@ -74,14 +74,13 @@ valid_dest(nir_block *block, nir_dest *dest)
* (so this is run iteratively in a loop). Therefore if
* we get this far, it should not have any if_uses:
*/
- assert(dest->ssa.if_uses->entries == 0);
+ assert(list_empty(&dest->ssa.if_uses));
/* The only uses of this definition must be phi's in the
* successor or in the current block
*/
- struct set_entry *entry;
- set_foreach(dest->ssa.uses, entry) {
- const nir_instr *dest_instr = entry->key;
+ nir_foreach_use(&dest->ssa, use) {
+ nir_instr *dest_instr = use->parent_instr;
if (dest_instr->block == block)
continue;
if ((dest_instr->type == nir_instr_type_phi) &&