static int pandecode_dump_frame_count = 0;
-static void
-pandecode_dump_file_open(bool force_stderr)
+static bool force_stderr = false;
+
+void
+pandecode_dump_file_open(void)
{
if (pandecode_dump_stream)
return;
void
pandecode_initialize(bool to_stderr)
{
+ force_stderr = to_stderr;
mmap_table = _mesa_hash_table_u64_create(NULL);
util_dynarray_init(&ro_mappings, NULL);
- pandecode_dump_file_open(to_stderr);
}
void
{
pandecode_dump_file_close();
pandecode_dump_frame_count++;
- pandecode_dump_file_open(false);
}
void
void
pandecode_jc(mali_ptr jc_gpu_va, bool bifrost, unsigned gpu_id, bool minimal)
{
+ pandecode_dump_file_open();
+
struct mali_job_descriptor_header *h;
unsigned job_descriptor_number = 0;