radeonsi: Use nir_opt_generate_bfi to generate bitfield_select
Not tested. v2: Move after nir_opt_algebraic. Suggested by Georg. v3: has_bitfield_select is always enabled on GCN+. Suggested by Georg. Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31006>
This commit is contained in:
@@ -122,6 +122,7 @@ void si_nir_opts(struct si_screen *sscreen, struct nir_shader *nir, bool first)
|
||||
/* Needed for algebraic lowering */
|
||||
NIR_PASS(progress, nir, nir_lower_bit_size, si_lower_bit_size_callback, NULL);
|
||||
NIR_PASS(progress, nir, nir_opt_algebraic);
|
||||
NIR_PASS(progress, nir, nir_opt_generate_bfi);
|
||||
NIR_PASS(progress, nir, nir_opt_constant_folding);
|
||||
|
||||
if (!nir->info.flrp_lowered) {
|
||||
|
||||
Reference in New Issue
Block a user