mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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:
parent
aa737e8580
commit
3bde69e789
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue