diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-11 13:47:37 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-12 14:14:53 -0700 |
commit | b96df80069ffa532cec306dfe197513ecb03ddc1 (patch) | |
tree | 94e0fdc04c24c56d74b6af5c9bc5fe9db5be70e6 /src | |
parent | fc7bcee865c5b42b7575f2e69ecf61b80521d47e (diff) |
panfrost/decode: Print line number of bad memory access
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/panfrost/pandecode/decode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pandecode/decode.h b/src/gallium/drivers/panfrost/pandecode/decode.h index 2a78fee1d40..9c788bbabcc 100644 --- a/src/gallium/drivers/panfrost/pandecode/decode.h +++ b/src/gallium/drivers/panfrost/pandecode/decode.h @@ -59,6 +59,12 @@ __pandecode_fetch_gpu_mem(const struct pandecode_mapped_memory *mem, if (!mem) mem = pandecode_find_mapped_gpu_mem_containing(gpu_va); + if (!mem) { + fprintf(stderr, "Access to unknown memory %" PRIx64 " in %s:%d", + gpu_va, filename, line); + assert(0); + } + assert(mem); assert(size + (gpu_va - mem->gpu_va) <= mem->length); |