mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
device-select: Avoid usage of legacy GetPhysicalDeviceProperties
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:
parent
369a3b22b4
commit
0b86e1f752
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue