vulkan/overlay: fix truncating error on 32bit platforms
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 9 May 2019 14:22:40 +0000 (15:22 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 10 May 2019 20:54:48 +0000 (21:54 +0100)
commit877b371cbb2c51cd569d8e5bb3f00ef6d9724336
treef6fde6ca136727bb04eb3c7d2c45846529e189d5
parent3f60810de0a2960ec15118ef9888d9efc9ea605a
vulkan/overlay: fix truncating error on 32bit platforms

Non dispatchable handles can be uint64_t. When compiling the layer on
a 32bit platform, this will lead to casting uint64_t into (void *)
which is 32bit, leading to incorrect handles being mapped internally
in the layer.

v2: Use more HKEY() (Eric)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Józef Kucia <joseph.kucia@gmail.com>
Fixes: 2d2927938f074f ("vulkan/overlay-layer: fix cast errors")
Reviewed-by: Józef Kucia <joseph.kucia@gmail.com>
src/vulkan/overlay-layer/overlay.cpp