mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2026-05-03 15:58:04 +02:00
Use device allocator for stage flags vector
Signed-off-by: Iason Paraskevopoulos <iason.paraskevopoulos@arm.com> Change-Id: I2b7882e10eca2f4cfbd3668b6265d5b6093c4272
This commit is contained in:
parent
b481ec0bd2
commit
937552cc18
1 changed files with 2 additions and 1 deletions
|
|
@ -143,7 +143,8 @@ static VkResult submit_wait_request(VkQueue queue, const VkPresentInfoKHR &prese
|
|||
swapchain_semaphores[i] = swapchain->get_image_present_semaphore(present_info.pImageIndices[i]);
|
||||
}
|
||||
|
||||
util::vector<VkPipelineStageFlags> pipeline_stage_flags{ util::allocator::get_generic() };
|
||||
util::vector<VkPipelineStageFlags> pipeline_stage_flags{ util::allocator(device_data.get_allocator(),
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_COMMAND) };
|
||||
if (!pipeline_stage_flags.try_resize(present_info.waitSemaphoreCount))
|
||||
{
|
||||
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue