mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
vulkan: Actually return the preferred memory format
We were just exiting the loop, but not remembering the index. Speeds up various memory operations, sometimes by quite a lot.
This commit is contained in:
parent
bdee95c32c
commit
3286d9f1b5
@ -1076,7 +1076,10 @@ gsk_vulkan_device_find_allocator (GskVulkanDevice *self,
|
|||||||
found = MIN (i, found);
|
found = MIN (i, found);
|
||||||
|
|
||||||
if ((properties.memoryTypes[i].propertyFlags & desired_flags) == desired_flags)
|
if ((properties.memoryTypes[i].propertyFlags & desired_flags) == desired_flags)
|
||||||
break;
|
{
|
||||||
|
found = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g_assert (found < properties.memoryTypeCount);
|
g_assert (found < properties.memoryTypeCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user