mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 10:14:13 +08:00
radv: Separate option to dump backend IR.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32079>
This commit is contained in:
parent
649da9e744
commit
6d5caabdd7
@ -1434,6 +1434,8 @@ RADV driver environment variables
|
||||
Dump compute (and ray tracing) shaders.
|
||||
``nir``
|
||||
Dump NIR for selected shader stages.
|
||||
``ir``
|
||||
Dump backend IR (ACO or LLVM) for selected shader stages.
|
||||
``asm``
|
||||
Dump shader disassembly for selected shader stages.
|
||||
|
||||
|
@ -71,6 +71,7 @@ enum {
|
||||
RADV_DEBUG_DUMP_CS = 1ull << 55,
|
||||
RADV_DEBUG_DUMP_NIR = 1ull << 56,
|
||||
RADV_DEBUG_DUMP_ASM = 1ull << 57,
|
||||
RADV_DEBUG_DUMP_BACKEND_IR = 1ull << 58,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
@ -84,6 +84,7 @@ static const struct debug_control radv_debug_options[] = {{"nofastclears", RADV_
|
||||
{"cs", RADV_DEBUG_DUMP_CS},
|
||||
{"nir", RADV_DEBUG_DUMP_NIR},
|
||||
{"asm", RADV_DEBUG_DUMP_ASM},
|
||||
{"ir", RADV_DEBUG_DUMP_BACKEND_IR},
|
||||
{NULL, 0}};
|
||||
|
||||
const char *
|
||||
|
@ -3002,7 +3002,8 @@ radv_fill_nir_compiler_options(struct radv_nir_compiler_options *options, struct
|
||||
options->wgp_mode = should_use_wgp;
|
||||
options->info = &pdev->info;
|
||||
options->dump_shader = can_dump_shader;
|
||||
options->dump_ir = options->dump_shader;
|
||||
options->dump_ir =
|
||||
options->dump_shader && instance->debug_flags & (RADV_DEBUG_DUMP_BACKEND_IR | RADV_DEBUG_DUMP_SHADERS);
|
||||
options->dump_preoptir = options->dump_shader && instance->debug_flags & RADV_DEBUG_PREOPTIR;
|
||||
options->record_asm = keep_shader_info || options->dump_shader;
|
||||
options->record_ir = keep_shader_info;
|
||||
|
Loading…
Reference in New Issue
Block a user