mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02: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 */
|
/* clang-format off */
|
||||||
static const struct debug_named_value agx_debug_options[] = {
|
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"},
|
{"shaders", AGX_DBG_SHADERS, "Dump shaders in NIR and AIR"},
|
||||||
{"shaderdb", AGX_DBG_SHADERDB, "Print statistics"},
|
{"shaderdb", AGX_DBG_SHADERDB, "Print statistics"},
|
||||||
{"verbose", AGX_DBG_VERBOSE, "Disassemble verbosely"},
|
{"verbose", AGX_DBG_VERBOSE, "Disassemble verbosely"},
|
||||||
|
|
@ -52,12 +51,6 @@ agx_get_compiler_debug(void)
|
||||||
return debug_get_option_agx_compiler_debug();
|
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
|
static agx_index
|
||||||
agx_cached_preload(agx_context *ctx, agx_index *cache, unsigned base,
|
agx_cached_preload(agx_context *ctx, agx_index *cache, unsigned base,
|
||||||
enum agx_size size)
|
enum agx_size size)
|
||||||
|
|
|
||||||
|
|
@ -400,9 +400,6 @@ typedef struct agx_block {
|
||||||
*/
|
*/
|
||||||
uint8_t *ssa_to_reg_out;
|
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
|
/* Is this block a loop header? If not, all of its predecessors precede it in
|
||||||
* source order.
|
* source order.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ extern "C" {
|
||||||
|
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
enum agx_compiler_dbg {
|
enum agx_compiler_dbg {
|
||||||
AGX_DBG_MSGS = BITFIELD_BIT(0),
|
/* bit 0 unused */
|
||||||
AGX_DBG_SHADERS = BITFIELD_BIT(1),
|
AGX_DBG_SHADERS = BITFIELD_BIT(1),
|
||||||
AGX_DBG_SHADERDB = BITFIELD_BIT(2),
|
AGX_DBG_SHADERDB = BITFIELD_BIT(2),
|
||||||
AGX_DBG_VERBOSE = BITFIELD_BIT(3),
|
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;
|
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
|
/* Also set the sources for the phis in our successors, since that logically
|
||||||
* happens now (given the possibility of live range splits, etc)
|
* happens now (given the possibility of live range splits, etc)
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue