From b51468ed9c402c7bb982370b49dea895ed2cc677 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 2 Mar 2020 07:38:38 -0500 Subject: [PATCH] pan/bi: Add v4i8 mode to FMA_SHIFT Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost.h | 2 +- src/panfrost/bifrost/disassemble.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 2cb6eb1ca2a..f811b775493 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -106,7 +106,7 @@ struct bifrost_shift_fma { unsigned src0 : 3; unsigned src1 : 3; unsigned src2 : 3; - unsigned half : 3; /* 000 for i32, 111 for v2i16 */ + unsigned half : 3; /* 000 for i32, 100 for i8, 111 for v2i16 */ unsigned unk : 1; /* always set? */ unsigned invert_1 : 1; /* Inverts sources to combining op */ /* For XOR, switches RSHIFT to LSHIFT since only one invert needed */ diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index 51822d8bf28..01445ad9940 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -894,6 +894,8 @@ static void dump_fma(FILE *fp, uint64_t word, struct bifrost_regs regs, struct b fprintf(fp, ".v2i16"); else if (shift.half == 0) fprintf(fp, ".i32"); + else if (shift.half == 0x4) + fprintf(fp, ".v4i8"); else fprintf(fp, ".unk%u", shift.half); -- 2.30.2