Skip to content
Snippets Groups Projects
Commit 881c4d46 authored by Eric Engestrom's avatar Eric Engestrom :no_entry: Committed by Dylan Baker
Browse files

vk/device-select-layer: fix .sType of VkPhysicalDeviceGroupProperties

The validation layers complained:
> Validation Error: [ VUID-VkPhysicalDeviceGroupProperties-sType-sType ] Object 0: VK_NULL_HANDLE, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xc9edee8b | vkEnumeratePhysicalDeviceGroups: parameter pPhysicalDeviceGroupProperties[0].sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES The Vulkan spec states: sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-VkPhysicalDeviceGroupProperties-sType-sType

)

Signed-off-by: default avatarEric Engestrom <eric@igalia.com>
Reviewed-by: default avatarGeorg Lehmann <dadschoorse@gmail.com>
Fixes: c196ffac ("vk-device-select: add device group support")
Part-of: <mesa/mesa!18037>
(cherry picked from commit 45884538)
parent 9ae5b4af
No related branches found
No related tags found
No related merge requests found
......@@ -850,7 +850,7 @@
"description": "vk/device-select-layer: fix .sType of VkPhysicalDeviceGroupProperties",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "c196ffaca6d927e213d1c39ec9eed611fd01e2e1"
},
......@@ -561,6 +561,9 @@ static VkResult device_select_EnumeratePhysicalDeviceGroups(VkInstance instance,
goto out;
}
for (unsigned i = 0; i < physical_device_group_count; i++)
physical_device_groups[i].sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES;
result = info->EnumeratePhysicalDeviceGroups(instance, &physical_device_group_count, physical_device_groups);
if (result != VK_SUCCESS)
goto out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment