lima: Fix dump file creation
authorAndreas Baierl <ichgeh@imkreisrum.de>
Fri, 20 Dec 2019 10:30:05 +0000 (11:30 +0100)
committerAndreas Baierl <ichgeh@imkreisrum.de>
Fri, 20 Dec 2019 16:44:12 +0000 (17:44 +0100)
commit1b0743dbb6f925921e52bc9ecdde6a8bf755d162
tree4311a98bd2845f579ea8e373b6d17717ee8f0776
parent9c2a3b4e7566108ad336c253e3cd0fcb2629ae6d
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 <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>
src/gallium/drivers/lima/lima_util.c