aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-06-11 13:47:37 -0700
committerAlyssa Rosenzweig <[email protected]>2019-06-12 14:14:53 -0700
commitb96df80069ffa532cec306dfe197513ecb03ddc1 (patch)
tree94e0fdc04c24c56d74b6af5c9bc5fe9db5be70e6 /src/gallium
parentfc7bcee865c5b42b7575f2e69ecf61b80521d47e (diff)
panfrost/decode: Print line number of bad memory access
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/panfrost/pandecode/decode.h6
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);