diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-31 22:18:03 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-01 02:25:05 +0000 |
commit | 1b16d6354bc9f64ed97fc400977e3ffcb4c09268 (patch) | |
tree | 65caed5ea50bcfbfddbd93fd9f4fc9c8ceeb8151 /src | |
parent | 12cf9f43f02ac00b9604e12f1fb26e363941d90b (diff) |
pan/bi: Fix outmod/roundmode flip
I misread the disassembler, the fields are in the other order.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4396>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4396>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/bifrost/bifrost.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 19d284e555b..74718eaa316 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -204,8 +204,8 @@ struct bifrost_fma_add { unsigned src1_neg : 1; unsigned unk : 3; unsigned src0_abs : 1; - enum bifrost_outmod outmod : 2; enum bifrost_roundmode roundmode : 2; + enum bifrost_outmod outmod : 2; unsigned op : 6; } __attribute__((packed)); @@ -222,9 +222,9 @@ struct bifrost_fma_add_minmax16 { unsigned src1_neg : 1; unsigned src0_swizzle : 2; unsigned src1_swizzle : 2; + unsigned mode : 2; enum bifrost_outmod outmod : 2; /* roundmode for add, min/max mode for min/max */ - unsigned mode : 2; unsigned op : 6; } __attribute__((packed)); |