vulkan/object: Always include the type
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 8 May 2020 01:07:14 +0000 (20:07 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 May 2020 17:09:27 +0000 (17:09 +0000)
commitab5590e92bc36e2b785a088751c433d31989d778
treea848b6e3ecd60176127be5e8a7a0964a36a37233
parentd11e4738a86ecac6bb4cfaf5cad5c1d32169b18f
vulkan/object: Always include the type

This was causing problems for some of the ANV unit tests when run in
release mode.  Having a public struct whose layout depends on NDEBUG
seems kind-of sketchy anyway.

Fixes: 32f20783a51 "vulkan: Add run-time object type asserts in..."
Closes: #2903
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4959>
src/vulkan/util/vk_object.c
src/vulkan/util/vk_object.h