diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index 1359b2eb220..33c96a3ce75 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -26,7 +26,6 @@ /* clang-format off */ static const struct debug_named_value agx_debug_options[] = { - {"msgs", AGX_DBG_MSGS, "Print debug messages"}, {"shaders", AGX_DBG_SHADERS, "Dump shaders in NIR and AIR"}, {"shaderdb", AGX_DBG_SHADERDB, "Print statistics"}, {"verbose", AGX_DBG_VERBOSE, "Disassemble verbosely"}, @@ -52,12 +51,6 @@ agx_get_compiler_debug(void) return debug_get_option_agx_compiler_debug(); } -#define DBG(fmt, ...) \ - do { \ - if (agx_compiler_debug & AGX_DBG_MSGS) \ - fprintf(stderr, "%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__); \ - } while (0) - static agx_index agx_cached_preload(agx_context *ctx, agx_index *cache, unsigned base, enum agx_size size) diff --git a/src/asahi/compiler/agx_compiler.h b/src/asahi/compiler/agx_compiler.h index 57834b80b12..36fed76fab9 100644 --- a/src/asahi/compiler/agx_compiler.h +++ b/src/asahi/compiler/agx_compiler.h @@ -400,9 +400,6 @@ typedef struct agx_block { */ uint8_t *ssa_to_reg_out; - /* Register allocation */ - BITSET_DECLARE(regs_out, AGX_NUM_REGS); - /* Is this block a loop header? If not, all of its predecessors precede it in * source order. */ diff --git a/src/asahi/compiler/agx_debug.h b/src/asahi/compiler/agx_debug.h index 9ff6b4ced29..a9f0c07f485 100644 --- a/src/asahi/compiler/agx_debug.h +++ b/src/asahi/compiler/agx_debug.h @@ -15,7 +15,7 @@ extern "C" { /* clang-format off */ enum agx_compiler_dbg { - AGX_DBG_MSGS = BITFIELD_BIT(0), + /* bit 0 unused */ AGX_DBG_SHADERS = BITFIELD_BIT(1), AGX_DBG_SHADERDB = BITFIELD_BIT(2), AGX_DBG_VERBOSE = BITFIELD_BIT(3), diff --git a/src/asahi/compiler/agx_register_allocate.c b/src/asahi/compiler/agx_register_allocate.c index c3812d43817..6cf93e7da23 100644 --- a/src/asahi/compiler/agx_register_allocate.c +++ b/src/asahi/compiler/agx_register_allocate.c @@ -869,9 +869,6 @@ agx_ra_assign_local(struct ra_ctx *rctx) block->ssa_to_reg_out = rctx->ssa_to_reg; - STATIC_ASSERT(sizeof(block->regs_out) == sizeof(used_regs)); - memcpy(block->regs_out, used_regs, sizeof(used_regs)); - /* Also set the sources for the phis in our successors, since that logically * happens now (given the possibility of live range splits, etc) */