diff options
author | Andreas Baierl <[email protected]> | 2019-12-20 11:30:05 +0100 |
---|---|---|
committer | Andreas Baierl <[email protected]> | 2019-12-20 17:44:12 +0100 |
commit | 1b0743dbb6f925921e52bc9ecdde6a8bf755d162 (patch) | |
tree | 4311a98bd2845f579ea8e373b6d17717ee8f0776 /src/gallium/drivers/lima | |
parent | 9c2a3b4e7566108ad336c253e3cd0fcb2629ae6d (diff) |
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 d71cd245d74 ('lima: Rotate dump files after each finished pp frame')
Reviewed-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Andreas Baierl <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3179>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3179>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r-- | src/gallium/drivers/lima/lima_util.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/lima/lima_util.c b/src/gallium/drivers/lima/lima_util.c index 65e3114ed5f..45f2b27b400 100644 --- a/src/gallium/drivers/lima/lima_util.c +++ b/src/gallium/drivers/lima/lima_util.c @@ -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 |