mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 22:58:31 +02:00
panfrost: split asserts in pandecode
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
parent
604d89c2d1
commit
c35ae93803
1 changed files with 2 additions and 3 deletions
|
|
@ -54,9 +54,8 @@ __pandecode_fetch_gpu_mem(const struct pandecode_mapped_memory *mem,
|
|||
if (!mem)
|
||||
mem = pandecode_find_mapped_gpu_mem_containing(gpu_va);
|
||||
|
||||
if (!mem ||
|
||||
size + (gpu_va - mem->gpu_va) > mem->length)
|
||||
assert(0);
|
||||
assert(mem);
|
||||
assert(size + (gpu_va - mem->gpu_va) <= mem->length);
|
||||
|
||||
return mem->addr + gpu_va - mem->gpu_va;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue