vulkan: Fix 32-bit build for the new overlay layer
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Feb 2019 03:07:29 +0000 (19:07 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Feb 2019 16:56:54 +0000 (08:56 -0800)
commit3090c6b9e9c114b3438be83399c7bed12f920505
treeb3d15bce923bd651c886b40d4f8da120123b235b
parent4f917e6a61860b58a05d40584f7aa3d5e4e32b75
vulkan: Fix 32-bit build for the new overlay layer

vulkan_core.h defines non-dispatchable handles as (struct object *)
on 64-bit systems, but uint64_t on 32-bit systems.  The former can be
implicitly cast to void *, but the latter requires an explicit cast.

While here, %lu is the wrong format specifier for uint64_t on 32-bit
systems, so use PRIu64, fixing a warning.

Reported-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/vulkan/overlay-layer/overlay.cpp