radeonsi: rename DBG_NO_TGSI -> DBG_NO_NIR
authorMarek Olšák <marek.olsak@amd.com>
Fri, 10 Jan 2020 21:50:41 +0000 (16:50 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 14 Jan 2020 23:46:07 +0000 (18:46 -0500)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.c

index 3120d4e0236bc826331718d851b5c8a68aad9f7e..daba5bcd79a58a1fd78420fe7f1d84274d1ea2ce 100644 (file)
@@ -59,7 +59,7 @@ static const struct debug_named_value debug_options[] = {
        { "tes", DBG(TES), "Print tessellation evaluation shaders" },
        { "cs", DBG(CS), "Print compute shaders" },
        { "noir", DBG(NO_IR), "Don't print the LLVM IR"},
-       { "notgsi", DBG(NO_TGSI), "Don't print the TGSI"},
+       { "nonir", DBG(NO_NIR), "Don't print NIR when printing shaders"},
        { "noasm", DBG(NO_ASM), "Don't print disassembled shaders"},
        { "preoptir", DBG(PREOPT_IR), "Print the LLVM IR before initial optimizations" },
 
index b0287688f9a4ae5cd88308c146a9c2a55d6f8fdc..9f574368b01777745cd61787fe67826a2e7f6a2f 100644 (file)
@@ -144,7 +144,7 @@ enum {
        DBG_TES = PIPE_SHADER_TESS_EVAL,
        DBG_CS = PIPE_SHADER_COMPUTE,
        DBG_NO_IR,
-       DBG_NO_TGSI,
+       DBG_NO_NIR,
        DBG_NO_ASM,
        DBG_PREOPT_IR,
 
index 07199a295d5ac2b3f7e16ba0d7aa341a7a24c097..66065d416209b1f81fb79d6b7970b291dc5d6daf 100644 (file)
@@ -5762,7 +5762,7 @@ int si_compile_shader(struct si_screen *sscreen,
        /* Dump TGSI code before doing TGSI->LLVM conversion in case the
         * conversion fails. */
        if (si_can_dump_shader(sscreen, sel->type) &&
-           !(sscreen->debug_flags & DBG(NO_TGSI))) {
+           !(sscreen->debug_flags & DBG(NO_NIR))) {
                nir_print_shader(nir, stderr);
                si_dump_streamout(&sel->so);
        }