aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/lima/lima_util.c8
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