mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 23:50:11 +01:00
pan/mdg: Remove MSGS debug
These should all be unreachable and what's left is dead-code. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19350>
This commit is contained in:
parent
23968aeeb5
commit
f02354d3e2
2 changed files with 4 additions and 16 deletions
|
|
@ -31,7 +31,6 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define MIDGARD_DBG_MSGS 0x0001
|
||||
#define MIDGARD_DBG_SHADERS 0x0002
|
||||
#define MIDGARD_DBG_SHADERDB 0x0004
|
||||
#define MIDGARD_DBG_INORDER 0x0008
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@
|
|||
#include "disassemble.h"
|
||||
|
||||
static const struct debug_named_value midgard_debug_options[] = {
|
||||
{"msgs", MIDGARD_DBG_MSGS, "Print debug messages"},
|
||||
{"shaders", MIDGARD_DBG_SHADERS, "Dump shaders in NIR and MIR"},
|
||||
{"shaderdb", MIDGARD_DBG_SHADERDB, "Prints shader-db statistics"},
|
||||
{"inorder", MIDGARD_DBG_INORDER, "Disables out-of-order scheduling"},
|
||||
|
|
@ -65,11 +64,6 @@ DEBUG_GET_ONCE_FLAGS_OPTION(midgard_debug, "MIDGARD_MESA_DEBUG",
|
|||
|
||||
int midgard_debug = 0;
|
||||
|
||||
#define DBG(fmt, ...) \
|
||||
do { \
|
||||
if (midgard_debug & MIDGARD_DBG_MSGS) \
|
||||
fprintf(stderr, "%s:%d: " fmt, __func__, __LINE__, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
static midgard_block *
|
||||
create_empty_block(compiler_context *ctx)
|
||||
{
|
||||
|
|
@ -1841,8 +1835,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
|
|||
} else if (ctx->stage == MESA_SHADER_VERTEX) {
|
||||
emit_attr_read(ctx, reg, offset, nr_comp, t);
|
||||
} else {
|
||||
DBG("Unknown load\n");
|
||||
assert(0);
|
||||
unreachable("Unknown load");
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -2031,8 +2024,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
|
|||
|
||||
emit_mir_instruction(ctx, st);
|
||||
} else {
|
||||
DBG("Unknown store\n");
|
||||
assert(0);
|
||||
unreachable("Unknown store");
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -2188,9 +2180,7 @@ midgard_tex_format(enum glsl_sampler_dim dim)
|
|||
return 0;
|
||||
|
||||
default:
|
||||
DBG("Unknown sampler dim type\n");
|
||||
assert(0);
|
||||
return 0;
|
||||
unreachable("Unknown sampler dim type");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2551,8 +2541,7 @@ emit_instr(compiler_context *ctx, struct nir_instr *instr)
|
|||
break;
|
||||
|
||||
default:
|
||||
DBG("Unhandled instruction type\n");
|
||||
break;
|
||||
unreachable("Unhandled instruction type");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue