The open source OpenXR runtime

a/vk: Use xrt limits for number of collection images max

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
a41ccb04 04ab47ef

+7 -2
+7 -2
src/xrt/auxiliary/vk/vk_image_allocator.h
··· 1 - // Copyright 2020, Collabora, Ltd. 1 + // Copyright 2020-2022, Collabora, Ltd. 2 2 // SPDX-License-Identifier: BSL-1.0 3 3 /*! 4 4 * @file ··· 9 9 10 10 #pragma once 11 11 12 + #include "xrt/xrt_limits.h" 12 13 #include "xrt/xrt_config_os.h" 13 14 #include "xrt/xrt_vulkan_includes.h" 14 15 #include "vk/vk_helpers.h" ··· 35 36 { 36 37 struct xrt_swapchain_create_info info; 37 38 38 - struct vk_image images[8]; 39 + /*! 40 + * Limit set to same as max swapchain images because 41 + * this struct is mostly used to back swapchains. 42 + */ 43 + struct vk_image images[XRT_MAX_SWAPCHAIN_IMAGES]; 39 44 40 45 uint32_t image_count; 41 46 };