summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-04-29 15:59:22 +0200
committerMarek Olšák <[email protected]>2019-06-12 20:28:23 -0400
commit3bde69e789ca75d6b5dc9afc48dcb1675714769c (patch)
tree9c336bd8b9d1ce83c95ddd93df7f72756b36d7ec /src
parentaa737e858050239c263b06d2646f9977876b5ba2 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c2
1 files changed, 1 insertions, 1 deletions
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,