pan/bi: Move bi_constants to bifrost.h

Although it's software-defined, this stems from architectural traits and
is useful in both the disasm and the compiler.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
This commit is contained in:
Alyssa Rosenzweig
2020-12-22 15:33:23 -05:00
committed by Marge Bot
parent ac2b8a56cd
commit f74dda9377
2 changed files with 15 additions and 15 deletions
+15
View File
@@ -502,4 +502,19 @@ struct bifrost_pixel_indices {
unsigned y : 8;
} __attribute__((packed));
enum bi_constmod {
BI_CONSTMOD_NONE,
BI_CONSTMOD_PC_LO,
BI_CONSTMOD_PC_HI,
BI_CONSTMOD_PC_LO_HI
};
struct bi_constants {
/* Raw constant values */
uint64_t raw[6];
/* Associated modifier derived from M values */
enum bi_constmod mods[6];
};
#endif
-15
View File
@@ -34,21 +34,6 @@
void disassemble_bifrost(FILE *fp, uint8_t *code, size_t size, bool verbose);
enum bi_constmod {
BI_CONSTMOD_NONE,
BI_CONSTMOD_PC_LO,
BI_CONSTMOD_PC_HI,
BI_CONSTMOD_PC_LO_HI
};
struct bi_constants {
/* Raw constant values */
uint64_t raw[6];
/* Associated modifier derived from M values */
enum bi_constmod mods[6];
};
void
bi_disasm_fma(FILE *fp, unsigned bits, struct bifrost_regs *srcs, struct bifrost_regs *next_regs, unsigned staging_register, unsigned branch_offset, struct bi_constants *consts, bool first);