mesa: tweak program register printing for RelAddr case
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 12 Nov 2008 18:12:10 +0000 (11:12 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Nov 2008 01:19:12 +0000 (18:19 -0700)
src/mesa/shader/prog_print.c

index 749d5957a7fe70dad1f9d6b3767a8baf7ec62e5a..708acff3ee60d528a8564cbf3efe0e0c8b63e85b 100644 (file)
@@ -215,7 +215,7 @@ reg_string(enum register_file f, GLint index, gl_prog_print_mode mode,
    switch (mode) {
    case PROG_PRINT_DEBUG:
       if (relAddr)
-         sprintf(str, "%s[ADDR%s%d]", file_string(f, mode), (index > 0) ? "+" : "", index);
+         sprintf(str, "%s[ADDR+%d]", file_string(f, mode), index);
       else
          sprintf(str, "%s[%d]", file_string(f, mode), index);
       break;