mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nir: Add a fquantize2f16 opcode
This opcode simply takes a 32-bit floating-point value and reduces its effective precision to 16 bits.
This commit is contained in:
parent
aee970c844
commit
15a56459d7
1 changed files with 1 additions and 0 deletions
|
|
@ -176,6 +176,7 @@ unop("ffloor", tfloat, "floorf(src0)")
|
|||
unop("ffract", tfloat, "src0 - floorf(src0)")
|
||||
unop("fround_even", tfloat, "_mesa_roundevenf(src0)")
|
||||
|
||||
unop("fquantize2f16", tfloat, "_mesa_half_to_float(_mesa_float_to_half(src0))")
|
||||
|
||||
# Trigonometric operations.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue