Commit 8c807cc2 authored by Jason Ekstrand's avatar Jason Ekstrand

nir/gather_info: fixup for new foreach_block()

Signed-off-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Connor Abbott's avatarConnor Abbott <cwabbott0@gmail.com>
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 331b9f73
......@@ -68,8 +68,8 @@ gather_tex_info(nir_tex_instr *instr, nir_shader *shader)
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) {
......@@ -86,8 +86,6 @@ gather_info_block(nir_block *block, void *shader)
break;
}
}
return true;
}
/**
......@@ -157,5 +155,7 @@ nir_shader_gather_info(nir_shader *shader, nir_function_impl *entrypoint)
}
}
nir_foreach_block_call(entrypoint, gather_info_block, shader);
nir_foreach_block(block, entrypoint) {
gather_info_block(block, shader);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment