Mesa (main): intel: Add INTEL_DEBUG=task,mesh
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Dec 4 01:33:15 UTC 2021
Module: Mesa
Branch: main
Commit: 76f55d7556e2b800ef11ce23616651bdd5497097
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=76f55d7556e2b800ef11ce23616651bdd5497097
Author: Caio Oliveira <caio.oliveira at intel.com>
Date: Tue Feb 9 20:07:22 2021 -0800
intel: Add INTEL_DEBUG=task,mesh
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13661>
---
src/intel/dev/intel_debug.c | 7 ++++++-
src/intel/dev/intel_debug.h | 2 ++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/intel/dev/intel_debug.c b/src/intel/dev/intel_debug.c
index 96cdf9c557f..7eb6131c715 100644
--- a/src/intel/dev/intel_debug.c
+++ b/src/intel/dev/intel_debug.c
@@ -96,8 +96,10 @@ static const struct debug_control debug_control[] = {
{ "no32", DEBUG_NO32 },
{ "shaders", DEBUG_WM | DEBUG_VS | DEBUG_TCS |
DEBUG_TES | DEBUG_GS | DEBUG_CS |
- DEBUG_RT },
+ DEBUG_RT | DEBUG_TASK | DEBUG_MESH },
{ "rt", DEBUG_RT },
+ { "task", DEBUG_TASK },
+ { "mesh", DEBUG_MESH },
{ NULL, 0 }
};
@@ -112,6 +114,9 @@ intel_debug_flag_for_shader_stage(gl_shader_stage stage)
[MESA_SHADER_FRAGMENT] = DEBUG_WM,
[MESA_SHADER_COMPUTE] = DEBUG_CS,
+ [MESA_SHADER_TASK] = DEBUG_TASK,
+ [MESA_SHADER_MESH] = DEBUG_MESH,
+
[MESA_SHADER_RAYGEN] = DEBUG_RT,
[MESA_SHADER_ANY_HIT] = DEBUG_RT,
[MESA_SHADER_CLOSEST_HIT] = DEBUG_RT,
diff --git a/src/intel/dev/intel_debug.h b/src/intel/dev/intel_debug.h
index 9e46eb81615..bb48618829c 100644
--- a/src/intel/dev/intel_debug.h
+++ b/src/intel/dev/intel_debug.h
@@ -94,6 +94,8 @@ extern uint64_t intel_debug;
#define DEBUG_NO_FAST_CLEAR (1ull << 46)
#define DEBUG_NO32 (1ull << 47)
#define DEBUG_RT (1ull << 48)
+#define DEBUG_TASK (1ull << 49)
+#define DEBUG_MESH (1ull << 50)
#define DEBUG_ANY (~0ull)
More information about the mesa-commit
mailing list