pan/mdg: Handle f2u8

This is similar to f2u16.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5285>
This commit is contained in:
Alyssa Rosenzweig 2020-05-25 14:46:40 -04:00 committed by Marge Bot
parent f8b881f161
commit 0ae0141f5b
1 changed files with 3 additions and 1 deletions

View File

@ -544,7 +544,6 @@ nir_is_non_scalar_swizzle(nir_alu_src *src, unsigned nr_components)
case nir_op_##nir: \
op = midgard_alu_op_##_op; \
roundmode = MIDGARD_RTZ; \
assert(src_bitsize == dst_bitsize); \
break;
#define ALU_CHECK_CMP(sext) \
@ -850,6 +849,9 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
ALU_CASE_RTZ(i2f32, i2f_rte);
ALU_CASE_RTZ(u2f32, u2f_rte);
ALU_CASE_RTZ(f2i8, f2i_rte);
ALU_CASE_RTZ(f2u8, f2u_rte);
ALU_CASE_RTZ(f2i16, f2i_rte);
ALU_CASE_RTZ(f2u16, f2u_rte);
ALU_CASE_RTZ(i2f16, i2f_rte);