From: Brian Paul Date: Wed, 12 Nov 2008 18:12:10 +0000 (-0700) Subject: mesa: tweak program register printing for RelAddr case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=557fde9531289b4388a3080b89c2ebaa38abeaee;p=mesa.git mesa: tweak program register printing for RelAddr case --- diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 749d5957a7f..708acff3ee6 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -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;