...
 
Commits (1)
......@@ -73,7 +73,7 @@ __panwrap_fetch_gpu_mem(const struct panwrap_mapped_memory *mem,
!(mem->prot & MALI_MEM_PROT_CPU_RD))
__panwrap_fetch_mem_err(mem, gpu_va, size, line, filename);
return (void*)gpu_va + (ptrdiff_t)((void*)mem->gpu_va - mem->addr);
return (void*)gpu_va - (void*)mem->gpu_va + mem->addr;
}
#define panwrap_fetch_gpu_mem(mem, gpu_va, size) \
......