mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 15:00:11 +01:00
panfrost/decode: Print line number of bad memory access
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
fc7bcee865
commit
b96df80069
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue