zink: add VK_KHR_external_memory_capabilities to instance exts
the props for this are weird so they have to be fetched "manually" Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14498>
This commit is contained in:

committed by
Marge Bot

parent
f0f1a94fcf
commit
65e34fa70e
@@ -287,6 +287,7 @@ struct zink_device_info {
|
||||
%endfor
|
||||
|
||||
VkPhysicalDeviceMemoryProperties mem_props;
|
||||
VkPhysicalDeviceIDProperties deviceid_props;
|
||||
|
||||
%for ext in extensions:
|
||||
<%helpers:guard ext="${ext}">
|
||||
@@ -435,6 +436,12 @@ zink_get_physical_device_info(struct zink_screen *screen)
|
||||
%endif
|
||||
%endfor
|
||||
|
||||
if (screen->vk_version < VK_MAKE_VERSION(1,2,0) && screen->instance_info.have_KHR_external_memory_capabilities) {
|
||||
info->deviceid_props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES;
|
||||
info->deviceid_props.pNext = props.pNext;
|
||||
props.pNext = &info->deviceid_props;
|
||||
}
|
||||
|
||||
// note: setting up local VkPhysicalDeviceProperties2.
|
||||
screen->vk.GetPhysicalDeviceProperties2(screen->pdev, &props);
|
||||
}
|
||||
|
@@ -37,6 +37,7 @@ import sys
|
||||
EXTENSIONS = [
|
||||
Extension("VK_EXT_debug_utils"),
|
||||
Extension("VK_KHR_get_physical_device_properties2"),
|
||||
Extension("VK_KHR_external_memory_capabilities"),
|
||||
Extension("VK_MVK_moltenvk",
|
||||
nonstandard=True),
|
||||
Extension("VK_KHR_surface"),
|
||||
|
Reference in New Issue
Block a user