From 8ddddfb5167e9d26dcf342d5390e702010197208 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 17 Dec 2020 11:07:30 -0500 Subject: treewide: Disambiguate various variables named "debug_options" Name them after what they control so 'vi -t' can take you somewhere useful. Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 4 ++-- src/panfrost/midgard/midgard_compile.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/panfrost') diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 110734db01c..17fd7f8d78d 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -37,7 +37,7 @@ #include "bi_quirks.h" #include "bi_builder.h" -static const struct debug_named_value debug_options[] = { +static const struct debug_named_value bifrost_debug_options[] = { {"msgs", BIFROST_DBG_MSGS, "Print debug messages"}, {"shaders", BIFROST_DBG_SHADERS, "Dump shaders in NIR and MIR"}, {"shaderdb", BIFROST_DBG_SHADERDB, "Print statistics"}, @@ -45,7 +45,7 @@ static const struct debug_named_value debug_options[] = { DEBUG_NAMED_VALUE_END }; -DEBUG_GET_ONCE_FLAGS_OPTION(bifrost_debug, "BIFROST_MESA_DEBUG", debug_options, 0) +DEBUG_GET_ONCE_FLAGS_OPTION(bifrost_debug, "BIFROST_MESA_DEBUG", bifrost_debug_options, 0) /* TODO: This is not thread safe!! */ static unsigned SHADER_DB_COUNT = 0; diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 09230fa2f26..631aae293b0 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -54,14 +54,14 @@ #include "disassemble.h" -static const struct debug_named_value debug_options[] = { +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"}, DEBUG_NAMED_VALUE_END }; -DEBUG_GET_ONCE_FLAGS_OPTION(midgard_debug, "MIDGARD_MESA_DEBUG", debug_options, 0) +DEBUG_GET_ONCE_FLAGS_OPTION(midgard_debug, "MIDGARD_MESA_DEBUG", midgard_debug_options, 0) /* TODO: This is not thread safe!! */ static unsigned SHADER_DB_COUNT = 0; -- cgit v1.2.3