This really has a second op for vectorization but we don't handle this
quite yet...
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>
}
} else if (from_size == 32 && to_size == 16) {
if (from_base == nir_type_float) {
- /* float32_to_float16 */
+ /* TODO: second vectorized source? */
+ struct bifrost_fma_2src pack = {
+ .src0 = bi_get_src(ins, regs, 0, true),
+ .src1 = BIFROST_SRC_STAGE, /* 0 */
+ .op = BIFROST_FMA_FLOAT32_TO_16
+ };
+
+ RETURN_PACKED(pack);
} else {
/* XXX: No int32_to_int16? */
}