To match other NIR passes.
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6718>
nir_undef_to_zero(nir_shader *shader);
bool nir_fuse_io_16(nir_shader *shader);
-void midgard_nir_lod_errata(nir_shader *shader);
+bool midgard_nir_lod_errata(nir_shader *shader);
unsigned midgard_get_first_tag_from_block(compiler_context *ctx, unsigned block_idx);
#include "compiler/nir/nir.h"
#include "compiler/nir/nir_builder.h"
-void midgard_nir_lod_errata(nir_shader *shader);
+bool midgard_nir_lod_errata(nir_shader *shader);
/* Workarounds errata pertaining to early Midgard chips where the settings for
* min_lod/max_lod/lod_bias are ignored in the sampler descriptor when
}
}
-void
+bool
midgard_nir_lod_errata(nir_shader *shader)
{
nir_foreach_function(function, shader) {
nir_metadata_preserve(function->impl, nir_metadata_block_index | nir_metadata_dominance);
}
+ return true;
}