From 73c91f14c9f94c5b2ffbd1aaaf7d7c60cb7bc3c9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 13:47:49 -0500 Subject: [PATCH] pan/bi: Extract bifrost_branch structure It's in the disassembler as bitfields, let's extract to a proper structure so we can see what's there. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bifrost.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 50bcc92bebb..689eb146cff 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -285,4 +285,20 @@ enum bifrost_branch_code { BR_ALWAYS = 63, }; +struct bifrost_branch { + unsigned src0 : 3; + + /* For BR_SIZE_ZERO, upper two bits become ctrl */ + unsigned src1 : 3; + + /* Offset source -- always uniform/const but + * theoretically could support indirect jumps? */ + unsigned src2 : 3; + + enum bifrost_branch_cond cond : 3; + enum branch_bit_size size : 3; + + unsigned op : 5; +}; + #endif -- 2.30.2