From 07456bcde2c915610b531b3134b0e3acb829414b Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 19 Feb 2021 10:45:57 -0500 Subject: [PATCH] pan/bi: Remove unused definitions Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/bifrost/bifrost.h | 51 ------------------------------------------ 1 file changed, 51 deletions(-) diff --git a/src/panfrost/bifrost/bifrost.h b/src/panfrost/bifrost/bifrost.h index 304c082..be3a2d0 100644 --- a/src/panfrost/bifrost/bifrost.h +++ b/src/panfrost/bifrost/bifrost.h @@ -219,57 +219,6 @@ struct bifrost_regs { unsigned ctrl : 4; } __attribute__((packed)); -enum bifrost_branch_cond { - BR_COND_LT = 0, - BR_COND_LE = 1, - BR_COND_GE = 2, - BR_COND_GT = 3, - // Equal vs. not-equal determined by src0/src1 comparison - BR_COND_EQ = 4, - // floating-point comparisons - // Becomes UNE when you flip the arguments - BR_COND_OEQ = 5, - // TODO what happens when you flip the arguments? - BR_COND_OGT = 6, - BR_COND_OLT = 7, -}; - -enum bifrost_branch_code { - BR_ALWAYS = 63, -}; - -#define BIFROST_ADD_OP_BRANCH (0x0d000 >> 12) - -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; -}; - -/* Clause packing */ - -struct bifrost_fmt1 { - unsigned ins_0 : 3; - unsigned tag : 5; - uint64_t ins_1 : 64; - unsigned ins_2 : 11; - uint64_t header : 45; -} __attribute__((packed)); - -#define BIFROST_FMT1_INSTRUCTIONS 0b00101 -#define BIFROST_FMT1_FINAL 0b01001 -#define BIFROST_FMT1_CONSTANTS 0b00001 - #define BIFROST_FMTC_CONSTANTS 0b0011 #define BIFROST_FMTC_FINAL 0b0111 -- 2.7.4