mesa: tweak program register printing for RelAddr case

(cherry picked from commit 557fde9531)
This commit is contained in:
Brian Paul 2008-11-12 11:12:10 -07:00 committed by Brian Paul
parent 20156ce5da
commit 1ad6daf3a9

View 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;