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>
UNUSED VkObjectType obj_type)
{
base->_loader_data.loaderMagic = ICD_LOADER_MAGIC;
-#ifndef NDEBUG
base->type = obj_type;
-#endif
}
void
struct vk_object_base {
VK_LOADER_DATA _loader_data;
-#ifndef NDEBUG
VkObjectType type;
-#endif
};
void vk_object_base_init(UNUSED struct vk_device *device,