v3dv: Use VK_DEFINE_*HANDLE_CASTS instead of rolling our own
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 29 Sep 2021 13:30:24 +0000 (08:30 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Sep 2021 23:27:52 +0000 (23:27 +0000)
commit1da70c7e935dcbd31cf4d0cc2dda007fd032c6eb
tree40675a9e70a8135458d75fabad90454d3289f88a
parent24637a6579303a6b4f85001f33943c6004af8c50
v3dv: Use VK_DEFINE_*HANDLE_CASTS instead of rolling our own

The core ones have some nifty stuff like asserts that it's a valid
vk_object_base and has the right type.  We don't have real type safety
with Vulkan handles but this is as close as we can get.  The core ones
also track when we've started handing out handles for logging purposes
which we want.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13101>
src/broadcom/vulkan/v3dv_private.h