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@amd.com>
This commit is contained in:
Nicolai Hähnle 2019-04-29 15:59:22 +02:00 committed by Marek Olšák
parent aa737e8580
commit 3bde69e789

View file

@ -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,