diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-27 18:34:21 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-31 01:12:26 +0000 |
commit | 902f99a45d3e1a7e1ef85429c0ed4e067b2656f3 (patch) | |
tree | c6d6e107b2acc495fbf47ee4b646c448032a1dbc /src/panfrost/bifrost/disassemble.c | |
parent | 73715124ea53df1a3ef8cae6097556b98611dbb4 (diff) |
pan/bi: Expand out FMA conversion opcodes
There are a *lot* of them, with lots of symmetry we can exploit to
simplify the packing logic (but not entirely). Let's add the
corresponding header structs/defines, although we don't actually poke
the disassembler at this stage.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4382>
Diffstat (limited to 'src/panfrost/bifrost/disassemble.c')
-rw-r--r-- | src/panfrost/bifrost/disassemble.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c index e025d5c89d4..cef8b58462e 100644 --- a/src/panfrost/bifrost/disassemble.c +++ b/src/panfrost/bifrost/disassemble.c @@ -480,6 +480,8 @@ static const struct fma_op_info FMAOpInfos[] = { { false, 0xd8000, "ADD.v2f16", FMA_FADD16 }, { false, 0xdc000, "CSEL4.v16", FMA_CSEL4 }, { false, 0xdd000, "F32_TO_F16", FMA_TWO_SRC }, + + /* TODO: Combine to bifrost_fma_f2i_i2f16 */ { true, 0x00046, "F16_TO_I16.XX", FMA_ONE_SRC }, { true, 0x00047, "F16_TO_U16.XX", FMA_ONE_SRC }, { true, 0x0004e, "F16_TO_I16.YX", FMA_ONE_SRC }, @@ -496,10 +498,13 @@ static const struct fma_op_info FMAOpInfos[] = { { true, 0x000d1, "U16_TO_F16.XY", FMA_ONE_SRC }, { true, 0x000d8, "I16_TO_F16.YY", FMA_ONE_SRC }, { true, 0x000d9, "U16_TO_F16.YY", FMA_ONE_SRC }, + { true, 0x00136, "F32_TO_I32", FMA_ONE_SRC }, { true, 0x00137, "F32_TO_U32", FMA_ONE_SRC }, { true, 0x00178, "I32_TO_F32", FMA_ONE_SRC }, { true, 0x00179, "U32_TO_F32", FMA_ONE_SRC }, + + /* TODO: cleanup to use bifrost_fma_int16_to_32 */ { true, 0x00198, "I16_TO_I32.X", FMA_ONE_SRC }, { true, 0x00199, "U16_TO_U32.X", FMA_ONE_SRC }, { true, 0x0019a, "I16_TO_I32.Y", FMA_ONE_SRC }, @@ -508,8 +513,10 @@ static const struct fma_op_info FMAOpInfos[] = { { true, 0x0019d, "U16_TO_F32.X", FMA_ONE_SRC }, { true, 0x0019e, "I16_TO_F32.Y", FMA_ONE_SRC }, { true, 0x0019f, "U16_TO_F32.Y", FMA_ONE_SRC }, + { true, 0x001a2, "F16_TO_F32.X", FMA_ONE_SRC }, { true, 0x001a3, "F16_TO_F32.Y", FMA_ONE_SRC }, + { true, 0x0032c, "NOP", FMA_ONE_SRC }, { true, 0x0032d, "MOV", FMA_ONE_SRC }, { true, 0x0032f, "SWZ.YY.v2i16", FMA_ONE_SRC }, |