diff options
author | Kenneth Graunke <[email protected]> | 2017-03-20 01:58:48 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-03-21 13:48:53 -0700 |
commit | 2b074bb7e57667788cde4dd0f5b01d1683aa71ce (patch) | |
tree | 636aa7d4514d060462e59a06d4765da576a87c7d | |
parent | 1fa432741c45cf9cdbdd416cd0f7b424f2ffc7a5 (diff) |
intel: Add a INTEL_DEBUG=color option.
This will be used for color output in debug messages.
Reviewed-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | docs/envvars.html | 1 | ||||
-rw-r--r-- | src/intel/common/gen_debug.c | 1 | ||||
-rw-r--r-- | src/intel/common/gen_debug.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/docs/envvars.html b/docs/envvars.html index aa56cd1a9f4..653736565e6 100644 --- a/docs/envvars.html +++ b/docs/envvars.html @@ -160,6 +160,7 @@ See the <a href="xlibdriver.html">Xlib software driver page</a> for details. This is useful for debugging hangs, etc.</li> <li>INTEL_DEBUG - a comma-separated list of named flags, which do various things: <ul> + <li>color - use color in output</li> <li>tex - emit messages about textures.</li> <li>state - emit messages about state flag tracking</li> <li>blit - emit messages about blit operations</li> diff --git a/src/intel/common/gen_debug.c b/src/intel/common/gen_debug.c index f90f00d89e9..be6fcdb3bdc 100644 --- a/src/intel/common/gen_debug.c +++ b/src/intel/common/gen_debug.c @@ -83,6 +83,7 @@ static const struct debug_control debug_control[] = { { "do32", DEBUG_DO32 }, { "norbc", DEBUG_NO_RBC }, { "nohiz", DEBUG_NO_HIZ }, + { "color", DEBUG_COLOR }, { NULL, 0 } }; diff --git a/src/intel/common/gen_debug.h b/src/intel/common/gen_debug.h index d007aebf69d..e745ed7be10 100644 --- a/src/intel/common/gen_debug.h +++ b/src/intel/common/gen_debug.h @@ -79,6 +79,7 @@ extern uint64_t INTEL_DEBUG; #define DEBUG_DO32 (1ull << 37) #define DEBUG_NO_RBC (1ull << 38) #define DEBUG_NO_HIZ (1ull << 39) +#define DEBUG_COLOR (1ull << 40) #ifdef HAVE_ANDROID_PLATFORM #define LOG_TAG "INTEL-MESA" |