device-select: Avoid usage of legacy GetPhysicalDeviceProperties
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This caused validation errors and redundantly called both the new "2"
variant and the legacy variant

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39058>
This commit is contained in:
Franz Hoeltermann 2025-12-21 19:11:45 +01:00 committed by Marge Bot
parent 369a3b22b4
commit 0b86e1f752

View file

@ -194,11 +194,10 @@ void
device_select_get_properties(const struct instance_info *info, VkPhysicalDevice device,
VkPhysicalDeviceProperties2 *properties)
{
info->GetPhysicalDeviceProperties(device, &properties->properties);
if (info->GetPhysicalDeviceProperties2 &&
properties->properties.apiVersion >= VK_API_VERSION_1_1)
if (info->GetPhysicalDeviceProperties2 && info->has_vulkan11)
info->GetPhysicalDeviceProperties2(device, properties);
else
info->GetPhysicalDeviceProperties(device, &properties->properties);
}
static void