Revert "vk/runtime: turn vk.xml extension requirements into asserts"
This reverts commit 6ac830ccb1.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21225>
This commit is contained in:
committed by
Marge Bot
parent
aa4b1d314e
commit
15e332073c
@@ -220,9 +220,6 @@ vk_device_init(struct vk_device *device,
|
||||
device->swapchain_private = NULL;
|
||||
#endif /* ANDROID */
|
||||
|
||||
assert_device_extensions_requirements(&physical_device->supported_extensions,
|
||||
physical_device->instance->supported_extensions);
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -193,8 +193,6 @@ vk_instance_init(struct vk_instance *instance,
|
||||
|
||||
glsl_type_singleton_init_or_ref();
|
||||
|
||||
assert_instance_extensions_requirements(instance->supported_extensions);
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@ _TEMPLATE_H = Template(COPYRIGHT + """
|
||||
#ifndef ${driver.upper()}_EXTENSIONS_H
|
||||
#define ${driver.upper()}_EXTENSIONS_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
%if driver == 'vk':
|
||||
@@ -57,17 +56,6 @@ struct vk_${type}_extension_table {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
static inline void
|
||||
assert_${type}_extensions_requirements(const struct vk_${type}_extension_table *${type}_ext${
|
||||
', const struct vk_instance_extension_table *instance_ext' if type == 'device' else ''
|
||||
}) {
|
||||
% for ext in extensions:
|
||||
% for req in ext.requires:
|
||||
assert(!${ext.type}_ext->${ext.name[3:]} || ${req.type}_ext->${req.name[3:]});
|
||||
% endfor
|
||||
% endfor
|
||||
}
|
||||
</%def>
|
||||
|
||||
${extension_table('instance', instance_extensions)}
|
||||
|
||||
Reference in New Issue
Block a user