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>
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;
}
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
* included in-tree.
*/
-void pandecode_initialize(void);
+void pandecode_initialize(bool to_stderr);
void pandecode_next_frame(void);