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:
Jason Ekstrand 2016-01-12 15:32:51 -08:00
parent aee970c844
commit 15a56459d7

View file

@ -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.