panfrost: Print synced traces to stderr

To match the existing behaviour.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3836>
This commit is contained in:
Alyssa Rosenzweig 2020-02-18 08:05:11 -05:00
parent c46a090942
commit 070bc883d3
3 changed files with 8 additions and 4 deletions

View file

@ -775,7 +775,7 @@ panfrost_create_screen(int fd, struct renderonly *ro)
list_inithead(&screen->bo_cache.buckets[i]);
if (pan_debug & (PAN_DBG_TRACE | PAN_DBG_SYNC))
pandecode_initialize();
pandecode_initialize(!(pan_debug & PAN_DBG_TRACE));
screen->base.destroy = panfrost_destroy_screen;

View file

@ -150,10 +150,14 @@ pandecode_dump_file_close(void)
}
void
pandecode_initialize(void)
pandecode_initialize(bool to_stderr)
{
list_inithead(&mmaps.node);
pandecode_dump_file_open();
if (to_stderr)
pandecode_dump_stream = stderr;
else
pandecode_dump_file_open();
}
void

View file

@ -42,7 +42,7 @@
* included in-tree.
*/
void pandecode_initialize(void);
void pandecode_initialize(bool to_stderr);
void pandecode_next_frame(void);