mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
radeonsi: add mesh shader debug options
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37932>
This commit is contained in:
parent
282a0ae20c
commit
e42ada1723
3 changed files with 6 additions and 2 deletions
|
|
@ -97,6 +97,8 @@ static const struct debug_named_value radeonsi_shader_debug_options[] = {
|
|||
{"tcs", DBG(TCS), "Print tessellation control shaders"},
|
||||
{"tes", DBG(TES), "Print tessellation evaluation shaders"},
|
||||
{"cs", DBG(CS), "Print compute shaders"},
|
||||
{"ts", DBG(TS), "Print task shaders"},
|
||||
{"ms", DBG(MS), "Print mesh shaders"},
|
||||
|
||||
{"initnir", DBG(INIT_NIR), "Print initial input NIR when shaders are created"},
|
||||
{"nir", DBG(NIR), "Print final NIR after lowering when shader variants are created"},
|
||||
|
|
|
|||
|
|
@ -232,6 +232,8 @@ enum
|
|||
DBG_GS = MESA_SHADER_GEOMETRY,
|
||||
DBG_PS = MESA_SHADER_FRAGMENT,
|
||||
DBG_CS = MESA_SHADER_COMPUTE,
|
||||
DBG_TS = MESA_SHADER_TASK,
|
||||
DBG_MS = MESA_SHADER_MESH,
|
||||
DBG_INIT_NIR,
|
||||
DBG_NIR,
|
||||
DBG_INIT_LLVM,
|
||||
|
|
@ -285,7 +287,7 @@ enum
|
|||
DBG_TEST_BLIT_PERF,
|
||||
};
|
||||
|
||||
#define DBG_ALL_SHADERS (((1 << (DBG_CS + 1)) - 1))
|
||||
#define DBG_ALL_SHADERS (((1 << (DBG_MS + 1)) - 1))
|
||||
#define DBG(name) (1ull << DBG_##name)
|
||||
|
||||
#define SI_BIND_CONSTANT_BUFFER_SHIFT 0
|
||||
|
|
|
|||
|
|
@ -750,7 +750,7 @@ bool si_can_dump_shader(struct si_screen *sscreen, mesa_shader_stage stage,
|
|||
[SI_DUMP_ACO_IR] = DBG(ACO),
|
||||
[SI_DUMP_ASM] = DBG(ASM),
|
||||
[SI_DUMP_STATS] = DBG(STATS),
|
||||
[SI_DUMP_ALWAYS] = DBG(VS) | DBG(TCS) | DBG(TES) | DBG(GS) | DBG(PS) | DBG(CS),
|
||||
[SI_DUMP_ALWAYS] = DBG(VS) | DBG(TCS) | DBG(TES) | DBG(GS) | DBG(PS) | DBG(CS) | DBG(TS) | DBG(MS),
|
||||
};
|
||||
assert(dump_type < ARRAY_SIZE(filter));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue