pan/bi: Add v4i8 mode to FMA_SHIFT

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4025>
This commit is contained in:
Alyssa Rosenzweig
2020-03-02 07:38:38 -05:00
committed by Marge Bot
parent 2db454bbab
commit b51468ed9c
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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 */
+2
View File
@@ -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);