v3dv/meta-copy: add uintptr_t casting to avoid warning

Without it, on the rpi4 (and any 32-bit SO) we would get a warning
about wrong sizes.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Alejandro Piñeiro
2020-06-06 01:42:58 +02:00
committed by Marge Bot
parent efb1880b4a
commit 23617021d6
+1 -1
View File
@@ -1767,7 +1767,7 @@ destroy_update_buffer_cb(VkDevice _device,
VkAllocationCallbacks *alloc)
{
V3DV_FROM_HANDLE(v3dv_device, device, _device);
struct v3dv_bo *bo = (struct v3dv_bo *) pobj;
struct v3dv_bo *bo = (struct v3dv_bo *)((uintptr_t) pobj);
v3dv_bo_free(device, bo);
}