summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-11-12 11:12:10 -0700
committerBrian Paul <[email protected]>2008-11-13 18:19:12 -0700
commit557fde9531289b4388a3080b89c2ebaa38abeaee (patch)
tree16d7ef4f9a3aa60a604b4e6848db9de78218bf7d
parente4c9aeed8b59e15bce0906521cdd090f033586a9 (diff)
mesa: tweak program register printing for RelAddr case
-rw-r--r--src/mesa/shader/prog_print.c2
1 files changed, 1 insertions, 1 deletions
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;