Mesa (master): radeonsi: fix line splitting in si_shader_dump_assembly
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 13 00:40:14 UTC 2019
Module: Mesa
Branch: master
Commit: 3bde69e789ca75d6b5dc9afc48dcb1675714769c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3bde69e789ca75d6b5dc9afc48dcb1675714769c
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Mon Apr 29 15:59:22 2019 +0200
radeonsi: fix line splitting in si_shader_dump_assembly
Compute the count since the start of the current line instead of the
count since the start of the the disassembly.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index ed2db3d0042..f4e522dd7c1 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -5259,7 +5259,7 @@ static void si_shader_dump_disassembly(struct si_screen *screen,
int count = nbytes - line;
const char *nl = memchr(disasm + line, '\n', nbytes - line);
if (nl)
- count = nl - disasm;
+ count = nl - (disasm + line);
if (count) {
pipe_debug_message(debug, SHADER_INFO,
More information about the mesa-commit
mailing list