mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 10:36:15 +00:00
a/vk: Track VK_EXT_swapchain_colorspace
This commit is contained in:
parent
b7addee249
commit
7576ce0960
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
# Copyright 2019-2021, Collabora, Ltd.
|
||||
# Copyright 2019-2022, Collabora, Ltd.
|
||||
# SPDX-License-Identifier: BSL-1.0
|
||||
"""Simple script to update vk_helpers.{c,h}."""
|
||||
|
||||
|
@ -253,6 +253,7 @@ def get_instance_cmds():
|
|||
# Sorted KHR, EXT, Vendor, interally alphabetically
|
||||
INSTANCE_EXTENSIONS_TO_CHECK = [
|
||||
"VK_EXT_display_surface_counter",
|
||||
"VK_EXT_swapchain_colorspace",
|
||||
]
|
||||
# Sorted KHR, EXT, Vendor, interally alphabetically
|
||||
DEVICE_EXTENSIONS_TO_CHECK = [
|
||||
|
|
|
@ -127,6 +127,7 @@ vk_fill_in_has_instance_extensions(struct vk_bundle *vk, struct u_string_list *e
|
|||
// beginning of GENERATED instance extension code - do not modify - used by scripts
|
||||
// Reset before filling out.
|
||||
vk->has_EXT_display_surface_counter = false;
|
||||
vk->has_EXT_swapchain_colorspace = false;
|
||||
|
||||
const char *const *exts = u_string_list_get_data(ext_list);
|
||||
uint32_t ext_count = u_string_list_get_size(ext_list);
|
||||
|
@ -140,6 +141,13 @@ vk_fill_in_has_instance_extensions(struct vk_bundle *vk, struct u_string_list *e
|
|||
continue;
|
||||
}
|
||||
#endif // defined(VK_EXT_display_surface_counter)
|
||||
|
||||
#if defined(VK_EXT_swapchain_colorspace)
|
||||
if (strcmp(ext, VK_EXT_SWAPCHAIN_COLORSPACE_EXTENSION_NAME) == 0) {
|
||||
vk->has_EXT_swapchain_colorspace = true;
|
||||
continue;
|
||||
}
|
||||
#endif // defined(VK_EXT_swapchain_colorspace)
|
||||
}
|
||||
// end of GENERATED instance extension code - do not modify - used by scripts
|
||||
}
|
||||
|
|
|
@ -115,6 +115,7 @@ struct vk_bundle
|
|||
|
||||
// beginning of GENERATED instance extension code - do not modify - used by scripts
|
||||
bool has_EXT_display_surface_counter;
|
||||
bool has_EXT_swapchain_colorspace;
|
||||
// end of GENERATED instance extension code - do not modify - used by scripts
|
||||
|
||||
// beginning of GENERATED device extension code - do not modify - used by scripts
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
#ifndef VK_KHR_MAINTENANCE_3_EXTENSION_NAME
|
||||
#define VK_KHR_MAINTENANCE_3_EXTENSION_NAME VK_KHR_MAINTENANCE3_EXTENSION_NAME
|
||||
#endif
|
||||
#ifndef VK_EXT_SWAPCHAIN_COLORSPACE_EXTENSION_NAME
|
||||
#define VK_EXT_SWAPCHAIN_COLORSPACE_EXTENSION_NAME VK_EXT_SWAPCHAIN_COLOR_SPACE_EXTENSION_NAME
|
||||
#endif
|
||||
|
||||
#if defined(VK_USE_PLATFORM_XLIB_XRANDR_EXT) || defined(VK_USE_PLATFORM_XLIB_KHR)
|
||||
// the xlib header is notoriously polluting.
|
||||
|
|
Loading…
Reference in a new issue