diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-02 07:38:38 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-03 00:03:50 +0000 |
commit | b51468ed9c402c7bb982370b49dea895ed2cc677 (patch) | |
tree | c230e824ede1d335e35750b3e6577eff325e80a4 /src/panfrost/bifrost | |
parent | 2db454bbabf07bffbc61e68d51dfb733c11e4976 (diff) |
pan/bi: Add v4i8 mode to FMA_SHIFT
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4025>
Diffstat (limited to 'src/panfrost/bifrost')
-rw-r--r-- | src/panfrost/bifrost/bifrost.h | 2 | ||||
-rw-r--r-- | src/panfrost/bifrost/disassemble.c | 2 |
2 files changed, 3 insertions, 1 deletions
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); |