asahi: Fix 32-bit x86 build with correct data type for overflow error message

Currently, when building on 32-bit x86, we get compilation errors
due to data type mis-matches in the format string.

This should fix the issue.

Signed-off-by: Neal Gompa <neal@gompa.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25052>
This commit is contained in:
Neal Gompa 2023-08-23 13:02:37 -04:00 committed by Marge Bot
parent cce1933ca5
commit 251008c1bf

View file

@ -234,8 +234,8 @@ __agxdecode_fetch_gpu_mem(const struct agx_bo *mem, uint64_t gpu_va,
fprintf(stderr,
"Overflowing to unknown memory %" PRIx64
" of size %zu (max size %zu) in %s:%d\n",
gpu_va, size, mem->size - (gpu_va - mem->ptr.gpu), filename,
line);
gpu_va, size, (size_t)(mem->size - (gpu_va - mem->ptr.gpu)),
filename, line);
fflush(agxdecode_dump_stream);
assert(0);
}