nir/lower_fp16_casts: Fix SSA dominance

Fixes: 01dfd65 ("nir: port fp16 casting code from dxil")
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22804>
This commit is contained in:
Konstantin Seurer 2023-05-02 19:56:44 +02:00 committed by Marge Bot
parent dabc52899b
commit 5503a08583

View file

@ -106,10 +106,11 @@ float_to_half_impl(nir_builder *b, nir_ssa_def *src, nir_rounding_mode mode)
nir_push_else(b, NULL);
}
nir_ssa_def *zero = nir_imm_int(b, 0);
nir_push_if(b, nir_ige(b, abs, nir_imm_int(b, 113 << 23)));
/* FP16 will be normal */
nir_ssa_def *zero = nir_imm_int(b, 0);
nir_ssa_def *value = nir_ior(b,
nir_ishl(b,
nir_isub(b,