mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
nir: add fmul_rtz
It's needed in NVK for correctness with interpolation. Backport-to: 26.1 Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41179>
This commit is contained in:
parent
f2ce2868c5
commit
4e520f671c
1 changed files with 4 additions and 0 deletions
|
|
@ -780,6 +780,10 @@ if (nir_is_rounding_mode_rtz(execution_mode, bit_size)) {
|
|||
}
|
||||
""")
|
||||
|
||||
binop("fmul_rtz", tfloat32, _2src_commutative + inexact_associative, """
|
||||
dst = _mesa_double_to_float_rtz((double)src0 * (double)src1);
|
||||
""")
|
||||
|
||||
binop("fmulz", tfloat32, _2src_commutative + inexact_associative, """
|
||||
if (src0 == 0.0 || src1 == 0.0)
|
||||
dst = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue