mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
lima: Fix dump file creation
Otherwise lima_dump_file_next() always opens a new file and creates the
dumps regardless of what the environment variables say.
Fixes d71cd245d7 ('lima: Rotate dump files after each finished pp frame')
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3179>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3179>
This commit is contained in:
parent
9c2a3b4e75
commit
1b0743dbb6
1 changed files with 5 additions and 3 deletions
|
|
@ -130,9 +130,11 @@ lima_dump_file_close(void)
|
|||
void
|
||||
lima_dump_file_next(void)
|
||||
{
|
||||
lima_dump_file_close();
|
||||
lima_dump_frame_count++;
|
||||
lima_dump_file_open();
|
||||
if (lima_dump_command_stream) {
|
||||
lima_dump_file_close();
|
||||
lima_dump_frame_count++;
|
||||
lima_dump_file_open();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue