Mesa (master): st/mesa: rename DEBUG_TGSI -> DEBUG_PRINT_IR

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 12 00:46:51 UTC 2019


Module: Mesa
Branch: master
Commit: c3351bb44b72dcb6729700a5349f1c61e62fe6f9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c3351bb44b72dcb6729700a5349f1c61e62fe6f9

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Nov  8 19:24:34 2019 -0500

st/mesa: rename DEBUG_TGSI -> DEBUG_PRINT_IR

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

---

 src/mesa/state_tracker/st_context.c | 2 +-
 src/mesa/state_tracker/st_debug.c   | 2 +-
 src/mesa/state_tracker/st_debug.h   | 2 +-
 src/mesa/state_tracker/st_program.c | 8 ++++----
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 9f72a8ef871..0a473f2d327 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -961,7 +961,7 @@ st_create_context(gl_api api, struct pipe_context *pipe,
    st_debug_init();
 
    if (pipe->screen->get_disk_shader_cache &&
-       !(ST_DEBUG & DEBUG_TGSI))
+       !(ST_DEBUG & DEBUG_PRINT_IR))
       ctx->Cache = pipe->screen->get_disk_shader_cache(pipe->screen);
 
    /* XXX: need a capability bit in gallium to query if the pipe
diff --git a/src/mesa/state_tracker/st_debug.c b/src/mesa/state_tracker/st_debug.c
index 06e2456ac98..95564cbc364 100644
--- a/src/mesa/state_tracker/st_debug.c
+++ b/src/mesa/state_tracker/st_debug.c
@@ -46,7 +46,7 @@ int ST_DEBUG = 0;
 
 static const struct debug_named_value st_debug_flags[] = {
    { "mesa",     DEBUG_MESA, NULL },
-   { "tgsi",     DEBUG_TGSI, NULL },
+   { "tgsi",     DEBUG_PRINT_IR, NULL },
    { "constants",DEBUG_CONSTANTS, NULL },
    { "pipe",     DEBUG_PIPE, NULL },
    { "tex",      DEBUG_TEX, NULL },
diff --git a/src/mesa/state_tracker/st_debug.h b/src/mesa/state_tracker/st_debug.h
index 446baa75c64..83f9a43bcbf 100644
--- a/src/mesa/state_tracker/st_debug.h
+++ b/src/mesa/state_tracker/st_debug.h
@@ -39,7 +39,7 @@ st_print_current(void);
 
 
 #define DEBUG_MESA      0x1
-#define DEBUG_TGSI      0x2
+#define DEBUG_PRINT_IR  0x2
 #define DEBUG_CONSTANTS 0x4
 #define DEBUG_PIPE      0x8
 #define DEBUG_TEX       0x10
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 1856ba8a43b..ae3b31bd9a9 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -791,7 +791,7 @@ st_create_vp_variant(struct st_context *st,
       state.tokens = tokens;
    }
 
-   if (ST_DEBUG & DEBUG_TGSI) {
+   if (ST_DEBUG & DEBUG_PRINT_IR) {
       tgsi_dump(state.tokens, 0);
       debug_printf("\n");
    }
@@ -1489,7 +1489,7 @@ st_create_fp_variant(struct st_context *st,
       state.tokens = tokens;
    }
 
-   if (ST_DEBUG & DEBUG_TGSI) {
+   if (ST_DEBUG & DEBUG_PRINT_IR) {
       tgsi_dump(state.tokens, 0);
       debug_printf("\n");
    }
@@ -1729,12 +1729,12 @@ st_translate_common_program(struct st_context *st,
 
    st_store_ir_in_disk_cache(st, prog, false);
 
-   if ((ST_DEBUG & DEBUG_TGSI) && (ST_DEBUG & DEBUG_MESA)) {
+   if ((ST_DEBUG & DEBUG_PRINT_IR) && (ST_DEBUG & DEBUG_MESA)) {
       _mesa_print_program(prog);
       debug_printf("\n");
    }
 
-   if (ST_DEBUG & DEBUG_TGSI) {
+   if (ST_DEBUG & DEBUG_PRINT_IR) {
       tgsi_dump(stcp->state.tokens, 0);
       debug_printf("\n");
    }




More information about the mesa-commit mailing list