From 1b16d6354bc9f64ed97fc400977e3ffcb4c09268 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 31 Mar 2020 22:18:03 -0400 Subject: [PATCH] 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: --- src/panfrost/bifrost/bifrost.h | 4 ++-- 1 file 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)); -- 2.30.2