zink/codegen: do not enable extensions based on vulkan version

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13004>
This commit is contained in:
Hoe Hao Cheng 2021-09-24 03:02:46 +08:00 committed by Marge Bot
parent 0e997d42a2
commit 3ee35b769a

View file

@ -361,22 +361,6 @@ zink_get_physical_device_info(struct zink_screen *screen)
}
}
%for version in versions:
if (${version.version()} <= screen->vk_version) {
%for ext in extensions:
%if ext.core_since and ext.core_since.struct_version == version.struct_version:
<%helpers:guard ext="${ext}">
%if not (ext.has_features or ext.has_properties):
info->have_${ext.name_with_vendor()} = true;
%else:
support_${ext.name_with_vendor()} = true;
%endif
</%helpers:guard>
%endif
%endfor
}
%endfor
// get device features
if (screen->vk.GetPhysicalDeviceFeatures2) {
// check for device extension features