mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
intel/debug: Add a debug flag for ray-tracing shaders
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7356>
This commit is contained in:
parent
a7dd172aaa
commit
27f44116fe
2 changed files with 11 additions and 2 deletions
|
|
@ -95,7 +95,9 @@ static const struct debug_control debug_control[] = {
|
|||
{ "nofc", DEBUG_NO_FAST_CLEAR },
|
||||
{ "no32", DEBUG_NO32 },
|
||||
{ "shaders", DEBUG_WM | DEBUG_VS | DEBUG_TCS |
|
||||
DEBUG_TES | DEBUG_GS | DEBUG_CS },
|
||||
DEBUG_TES | DEBUG_GS | DEBUG_CS |
|
||||
DEBUG_RT },
|
||||
{ "rt", DEBUG_RT },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
|
@ -109,8 +111,14 @@ intel_debug_flag_for_shader_stage(gl_shader_stage stage)
|
|||
[MESA_SHADER_GEOMETRY] = DEBUG_GS,
|
||||
[MESA_SHADER_FRAGMENT] = DEBUG_WM,
|
||||
[MESA_SHADER_COMPUTE] = DEBUG_CS,
|
||||
|
||||
[MESA_SHADER_RAYGEN] = DEBUG_RT,
|
||||
[MESA_SHADER_ANY_HIT] = DEBUG_RT,
|
||||
[MESA_SHADER_CLOSEST_HIT] = DEBUG_RT,
|
||||
[MESA_SHADER_MISS] = DEBUG_RT,
|
||||
[MESA_SHADER_INTERSECTION] = DEBUG_RT,
|
||||
[MESA_SHADER_CALLABLE] = DEBUG_RT,
|
||||
};
|
||||
STATIC_ASSERT(MESA_SHADER_STAGES == 6);
|
||||
return flags[stage];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ extern uint64_t intel_debug;
|
|||
#define DEBUG_PIPE_CONTROL (1ull << 45)
|
||||
#define DEBUG_NO_FAST_CLEAR (1ull << 46)
|
||||
#define DEBUG_NO32 (1ull << 47)
|
||||
#define DEBUG_RT (1ull << 48)
|
||||
|
||||
/* These flags are not compatible with the disk shader cache */
|
||||
#define DEBUG_DISK_CACHE_DISABLE_MASK DEBUG_SHADER_TIME
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue