From: Alyssa Rosenzweig Date: Wed, 1 Apr 2020 02:18:03 +0000 (-0400) Subject: pan/bi: Fix outmod/roundmode flip X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b16d6354bc9f64ed97fc400977e3ffcb4c09268;p=mesa.git pan/bi: Fix outmod/roundmode flip I misread the disassembler, the fields are in the other order. Signed-off-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- 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));