From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 18:47:49 +0000 (-0500) Subject: pan/bi: Extract bifrost_branch structure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73c91f14c9f94c5b2ffbd1aaaf7d7c60cb7bc3c9;p=mesa.git 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: --- 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