Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,7 @@ static VkResult overlay_QueuePresentKHR(
fps_limiter->limit(true);

struct queue_data *queue_data = FIND(struct queue_data, queue);
const auto *mode_info = static_cast<const VkSwapchainPresentModeInfoKHR*>(vk_find_struct_const(pPresentInfo->pNext, SWAPCHAIN_PRESENT_MODE_INFO_KHR));

/* Otherwise we need to add our overlay drawing semaphore to the list of
* semaphores to wait on. If we don't do that the presented picture might
Expand All @@ -1688,6 +1689,9 @@ static VkResult overlay_QueuePresentKHR(
present_info.pSwapchains = &swapchain;
present_info.pImageIndices = &image_index;

if (mode_info)
HUDElements.cur_present_mode = mode_info->pPresentModes[i];

struct overlay_draw *draw = before_present(swapchain_data,
queue_data,
pPresentInfo->pWaitSemaphores,
Expand Down
15 changes: 15 additions & 0 deletions subprojects/packagefiles/vulkan-headers/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
project(
'vulkan-headers',
'c',
license: 'Apache-2.0',
version: '1.4.345',
meson_version: '>=0.56.0',
)

vulkan_api_xml = files('registry/vk.xml')

vulkan_headers_dep = declare_dependency(
include_directories: include_directories('include'),
)

meson.override_dependency('vulkanheaders', vulkan_headers_dep)
16 changes: 6 additions & 10 deletions subprojects/vulkan-headers.wrap
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
[wrap-file]
directory = Vulkan-Headers-1.3.283
source_url = https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.3.283.tar.gz
source_filename = vulkan-headers-1.3.283.tar.gz
source_hash = a76ff77815012c76abc9811215c2167128a73a697bcc23948e858d1f7dd54a85
patch_filename = vulkan-headers_1.3.283-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/vulkan-headers_1.3.283-1/get_patch
patch_hash = 00e30d35117ae90a19b5b8878746fceaf31b41778b817ca9e6b3ae6063be8233
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/vulkan-headers_1.3.283-1/vulkan-headers-1.3.283.tar.gz
wrapdb_version = 1.3.283-1
directory = Vulkan-Headers-1.4.345
source_url = https://github.com/KhronosGroup/Vulkan-Headers/archive/v1.4.345.tar.gz
source_filename = vulkan-headers-1.4.345.tar.gz
source_hash = 99e19205df172c33229f18b5574c9258bc73ea229ec7d6b04daa357b2430f6c8
patch_directory = vulkan-headers

[provide]
vulkanheaders = vulkan_headers_dep
dependency_names = vulkanheaders
Loading