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 <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>
This commit is contained in:
committed by
Marge Bot
parent
2afddc4433
commit
73c91f14c9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user