Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29f1102a authored by Serdar Kocdemir's avatar Serdar Kocdemir
Browse files

Fix vkGetPhysicalDeviceQueueFamilyProperties2 struct setup

When fetching queue family properties with priority extensions the
`sType` field of the `VkQueueFamilyProperties2` struct needs to be
initialized.

Bug: 414758977
Test: run emulator with API level 36 AVDs
Flag: EXEMPT bugfix
Change-Id: I5baa3c19df3becf0a84bf2bf52e7c8ff48a8243e
parent 608292b5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -375,6 +375,7 @@ void VulkanInterface::init(bool protectedContent) {
    for (uint32_t i = 0; i < queueCount; ++i) {
        queuePriorityProps[i].sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT;
        queuePriorityProps[i].pNext = nullptr;
        queueProps[i].sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2;
        queueProps[i].pNext = &queuePriorityProps[i];
    }
    vkGetPhysicalDeviceQueueFamilyProperties2(physicalDevice, &queueCount, queueProps.data());