diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-14 13:21:21 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-14 15:09:17 -0700 |
commit | 4f03728fb7edad3e8f62dbe9f9326a216eecea85 (patch) | |
tree | d12c20cc32a9866c24b857e40f60ff65aab0073e /src/panfrost/pandecode/common.c | |
parent | 6c84a2665c619ca8dd0c4c64617b87ae1e5565e3 (diff) |
pan/decode: Prefer uint64_t to mali_ptr
This removes an unwanted dependency on panfrost-job.h
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/pandecode/common.c')
-rw-r--r-- | src/panfrost/pandecode/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panfrost/pandecode/common.c b/src/panfrost/pandecode/common.c index 0cefdb89957..6154b3cd505 100644 --- a/src/panfrost/pandecode/common.c +++ b/src/panfrost/pandecode/common.c @@ -37,7 +37,7 @@ static struct pandecode_mapped_memory mmaps; struct pandecode_mapped_memory * -pandecode_find_mapped_gpu_mem_containing(mali_ptr addr) +pandecode_find_mapped_gpu_mem_containing(uint64_t addr) { list_for_each_entry(struct pandecode_mapped_memory, pos, &mmaps.node, node) { if (addr >= pos->gpu_va && addr < pos->gpu_va + pos->length) @@ -48,7 +48,7 @@ pandecode_find_mapped_gpu_mem_containing(mali_ptr addr) } void -pandecode_inject_mmap(mali_ptr gpu_va, void *cpu, unsigned sz, const char *name) +pandecode_inject_mmap(uint64_t gpu_va, void *cpu, unsigned sz, const char *name) { struct pandecode_mapped_memory *mapped_mem = NULL; @@ -73,7 +73,7 @@ pandecode_inject_mmap(mali_ptr gpu_va, void *cpu, unsigned sz, const char *name) } char * -pointer_as_memory_reference(mali_ptr ptr) +pointer_as_memory_reference(uint64_t ptr) { struct pandecode_mapped_memory *mapped; char *out = malloc(128); @@ -89,7 +89,7 @@ pointer_as_memory_reference(mali_ptr ptr) /* Just use the raw address if other options are exhausted */ - snprintf(out, 128, MALI_PTR_FMT, ptr); + snprintf(out, 128, "0x%" PRIx64, ptr); return out; } |