lima: Rotate dump files after each finished pp frame
authorAndreas Baierl <ichgeh@imkreisrum.de>
Thu, 19 Dec 2019 21:17:45 +0000 (22:17 +0100)
committerAndreas Baierl <ichgeh@imkreisrum.de>
Thu, 19 Dec 2019 22:53:22 +0000 (23:53 +0100)
commitd71cd245d7445121342a4933cc6ed8ce3fc6e568
tree81d4eb2605785e68bd8312d75850aa3532e2a091
parent039f3f6adb815dfd4ab8059c1f5ec44e8e6190ae
lima: Rotate dump files after each finished pp frame

This rotates the dump files like the mali-syscall-tracker does.

After each finished pp frame a new file is generated. They are
numbered like lima.dump.0000, lima.dump.0001 ...
The filename and path can be given with the new environment
variable LIMA_DUMP_FILE.

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/3175>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3175>
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_screen.c
src/gallium/drivers/lima/lima_screen.h
src/gallium/drivers/lima/lima_util.c
src/gallium/drivers/lima/lima_util.h