mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
agx: rm deadcode
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26976>
This commit is contained in:
parent
aee66f4c8f
commit
b14987bf90
4 changed files with 1 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue