nv50: call nir_lower_flrp
Fix #7432: unknown nir_op flrp assertion This copy-pastes src/gallium/drivers/radeonsi/si_shader_nir.c The lower_flrp16 value differs given chipset >= NVISA_GV100_CHIPSET. Signed-off-by: Thomas Debesse <dev@illwieckz.net> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19003>
This commit is contained in:

committed by
Marge Bot

parent
ed2743eae5
commit
6d5921c623
@@ -3320,7 +3320,13 @@ Converter::run()
|
||||
subgroup_options.ballot_components = 1;
|
||||
subgroup_options.lower_elect = true;
|
||||
|
||||
unsigned lower_flrp = (nir->options->lower_flrp16 ? 16 : 0) |
|
||||
(nir->options->lower_flrp32 ? 32 : 0) |
|
||||
(nir->options->lower_flrp64 ? 64 : 0);
|
||||
assert(lower_flrp);
|
||||
|
||||
/* prepare for IO lowering */
|
||||
NIR_PASS_V(nir, nir_lower_flrp, lower_flrp, false);
|
||||
NIR_PASS_V(nir, nir_opt_deref);
|
||||
NIR_PASS_V(nir, nir_lower_regs_to_ssa);
|
||||
NIR_PASS_V(nir, nir_lower_vars_to_ssa);
|
||||
|
Reference in New Issue
Block a user