vulkan: Add run-time object type asserts in handle casts
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 21 Apr 2020 20:51:01 +0000 (15:51 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 4 May 2020 14:06:27 +0000 (14:06 +0000)
commit32f20783a512129fc2d7dd8a11ffa8670cef0068
treecefa1d84336ad9835127e59da069782e1fd2e983
parent7628585dd709f3ffb18c7ca134fff1f375ad7b6a
vulkan: Add run-time object type asserts in handle casts

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
src/vulkan/util/vk_object.c
src/vulkan/util/vk_object.h