diff options
author | Qiang Yu <[email protected]> | 2020-02-05 14:25:21 +0800 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-17 02:54:15 +0000 |
commit | d6ad8e590f27ce0413389f6274fa05106d45dba1 (patch) | |
tree | 87196003fc65683c48dfea292cb9014d643465b3 /src/gallium/drivers/lima/lima_util.h | |
parent | d0dde3de25aca535a35ee58850340a0bfdab9dab (diff) |
lima: use per submit dump file
After multi lima_submit, commands for one lima_submit may not be
flushed when change framebuffer. But we want to track command
stream for one submit, so save dump file for each submit.
Reviewed-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Qiang Yu <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
Diffstat (limited to 'src/gallium/drivers/lima/lima_util.h')
-rw-r--r-- | src/gallium/drivers/lima/lima_util.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/gallium/drivers/lima/lima_util.h b/src/gallium/drivers/lima/lima_util.h index 3ab3d723938..30c97d2f872 100644 --- a/src/gallium/drivers/lima/lima_util.h +++ b/src/gallium/drivers/lima/lima_util.h @@ -29,18 +29,23 @@ #define LIMA_PAGE_SIZE 4096 -extern FILE *lima_dump_command_stream; +struct lima_dump; bool lima_get_absolute_timeout(uint64_t *timeout); -void lima_dump_file_open(void); -void lima_dump_file_next(void); -void lima_dump_file_close(void); -void lima_dump_blob(FILE *fp, void *data, int size, bool is_float); -void lima_dump_vs_command_stream_print(void *data, int size, uint32_t start); -void lima_dump_plbu_command_stream_print(void *data, int size, uint32_t start); -void lima_dump_rsw_command_stream_print(void *data, int size, uint32_t start); -void lima_dump_texture_descriptor(void *data, int size, uint32_t start, uint32_t offset); -void lima_dump_command_stream_print(void *data, int size, bool is_float, - const char *fmt, ...); + +struct lima_dump *lima_dump_create(void); +struct lima_dump *lima_dump_next(struct lima_dump *dump); +void lima_dump_free(struct lima_dump *dump); + +void lima_dump_vs_command_stream_print(struct lima_dump *dump, void *data, + int size, uint32_t start); +void lima_dump_plbu_command_stream_print(struct lima_dump *dump, void *data, + int size, uint32_t start); +void lima_dump_rsw_command_stream_print(struct lima_dump *dump, void *data, + int size, uint32_t start); +void lima_dump_texture_descriptor(struct lima_dump *dump, void *data, + int size, uint32_t start, uint32_t offset); +void lima_dump_command_stream_print(struct lima_dump *dump, void *data, + int size, bool is_float, const char *fmt, ...); #endif |