projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
egl: rename _eglMatchDriver() to _eglInitializeDisplay()
[mesa.git]
/
src
/
panfrost
/
pandecode
/
common.c
diff --git
a/src/panfrost/pandecode/common.c
b/src/panfrost/pandecode/common.c
index ba825cf10b63a797256e3929f73d154dff8b9be4..14cb2f092c1c689d5a607a34ad030661baf99982 100644
(file)
--- a/
src/panfrost/pandecode/common.c
+++ b/
src/panfrost/pandecode/common.c
@@
-141,8
+141,10
@@
pointer_as_memory_reference(uint64_t ptr)
static int pandecode_dump_frame_count = 0;
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;
{
if (pandecode_dump_stream)
return;
@@
-177,9
+179,9
@@
pandecode_dump_file_close(void)
void
pandecode_initialize(bool to_stderr)
{
void
pandecode_initialize(bool to_stderr)
{
+ force_stderr = to_stderr;
mmap_table = _mesa_hash_table_u64_create(NULL);
util_dynarray_init(&ro_mappings, NULL);
mmap_table = _mesa_hash_table_u64_create(NULL);
util_dynarray_init(&ro_mappings, NULL);
- pandecode_dump_file_open(to_stderr);
}
void
}
void
@@
-187,7
+189,6
@@
pandecode_next_frame(void)
{
pandecode_dump_file_close();
pandecode_dump_frame_count++;
{
pandecode_dump_file_close();
pandecode_dump_frame_count++;
- pandecode_dump_file_open(false);
}
void
}
void