mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
dabc52899b
commit
5503a08583
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue