From: Alyssa Rosenzweig Date: Mon, 25 May 2020 18:46:40 +0000 (-0400) Subject: pan/mdg: Handle f2u8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ae0141f5b28995e266190a24c179a8fe282d602;p=mesa.git pan/mdg: Handle f2u8 This is similar to f2u16. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 8c35148dd29..7b9c9d51559 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -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);