Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
shader->info.uses_texture_gather = true;
}
-static bool
-gather_info_block(nir_block *block, void *shader)
+static void
+gather_info_block(nir_block *block, nir_shader *shader)
{
nir_foreach_instr(instr, block) {
switch (instr->type) {
break;
}
}
-
- return true;
}
/**
}
}
- nir_foreach_block_call(entrypoint, gather_info_block, shader);
+ nir_foreach_block(block, entrypoint) {
+ gather_info_block(block, shader);
+ }
}