Omar Polo <[email protected]> writes:
> Thomas Frohwein <[email protected]> writes:
>
>> Hi,
>>
>> The below diff updates the collection of vulkan ports to sdk-1.2.198.0,
>> released in November. Finding concrete release notes is quite opaque;
>> [1] summarizes the new extensions.
>>
>> Portswise biggest change is that spirv-headers now adopts the same
>> sdk-* versioning as vulkan-* (but spirv-tools is sticking with its own
>> numbering scheme). In order to use the numbering for spirv-headers now,
>> EPOCH needs to be set unfortunately. Some symbols of libvulkan have
>> been removed, therefore bumping major.
>>
>> I tested with vkcube, vulkaninfo, and games/vkquake without issues. I
>> noticed however that running FNA games (Rogue Legacy, Cryptark) with
>> '/gldevice:Vulkan' now leads to a crash (the default opengl device
>> still works fine). This crash also exists qith vulkan 1.2.189.1. I need
>> to investigate this further, but at least this shouldn't hold up the
>> vulkan update.
>>
>> Also friendly reminder that a review for importing robin-hood-hashing
>> [2] would help with the building and use of vulkan-validation-layers.
>>
>> ok?
>>
>> [1] https://www.lunarg.com/lunarg-releases-new-1-2-198-0-sdks/
>
> they all builds fine, tests passes when present, port-lib-depends-check
> and plist all fine.
>
> portcheck for spirv-headers complains about python modules without
> compiled version, but that's probably known.
>
> vkcube runs fine on amdgpu and vulkaninfo prints lots of stuff so it's
> probably happy too :)
>
> Unfortunately I can't test with godot like last time because it needs
> SPIRV/GlslangToSpv.h from glslang which went away with this update
> (upstream is "still" at vulkan sdk 1.2.190.)
I mean with godot from the master branch, not our port; that is fine and
doesn't even use vulkan. Sorry for being ambiguous.
> I'm attaching your diff without the vulkan-validation-layers-robin-hood
> bits that were picked up by mistake :)
>
>
> Index: glslang/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/glslang/Makefile,v
> retrieving revision 1.10
> diff -u -p -r1.10 Makefile
> --- glslang/Makefile 2 Nov 2021 00:01:15 -0000 1.10
> +++ glslang/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -4,10 +4,9 @@ PORTROACH = limit:^[0-9]
>
> COMMENT = reference front-end for GLSL and ESSL
>
> -GH_TAGNAME = 11.6.0
> +GH_TAGNAME = 11.7.0
> GH_ACCOUNT = KhronosGroup
> GH_PROJECT = glslang
> -REVISION = 0
>
> CATEGORIES = devel graphics
>
> Index: glslang/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/glslang/distinfo,v
> retrieving revision 1.4
> diff -u -p -r1.4 distinfo
> --- glslang/distinfo 16 Oct 2021 14:50:40 -0000 1.4
> +++ glslang/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (glslang-11.6.0.tar.gz) = mezToMLCIZKT12cjhG92Kp8+fdDcKk80bQ/DoFoM4AA=
> -SIZE (glslang-11.6.0.tar.gz) = 3419655
> +SHA256 (glslang-11.7.0.tar.gz) = tsg4ZMNgZnjRFnURT6XzWMUZ/h2tmngYArzIf7j6MtU=
> +SIZE (glslang-11.7.0.tar.gz) = 3426327
> Index: spirv-headers/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/spirv-headers/Makefile,v
> retrieving revision 1.6
> diff -u -p -r1.6 Makefile
> --- spirv-headers/Makefile 16 Oct 2021 14:50:40 -0000 1.6
> +++ spirv-headers/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -2,11 +2,12 @@
>
> COMMENT = SPIRV-Headers
>
> -DISTNAME = spirv-headers-1.5.4pl3
> -# commit from 2021-10-07
> -GH_COMMIT = 5ea2d62e8c0ddd9e2a7d0ca5e3f2335e09e5f408
> +V = 1.2.198.0
> +DISTNAME = spirv-headers-${V}
> GH_ACCOUNT = KhronosGroup
> GH_PROJECT = SPIRV-Headers
> +GH_TAGNAME = sdk-${V}
> +EPOCH = 0
>
> CATEGORIES = devel graphics
>
> Index: spirv-headers/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/spirv-headers/distinfo,v
> retrieving revision 1.5
> diff -u -p -r1.5 distinfo
> --- spirv-headers/distinfo 16 Oct 2021 14:50:40 -0000 1.5
> +++ spirv-headers/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (spirv-headers-1.5.4pl3-5ea2d62e.tar.gz) =
> WNYcWEKk9Ad42NufJoohafZe3m1DVoOrIrpf3xQLAJs=
> -SIZE (spirv-headers-1.5.4pl3-5ea2d62e.tar.gz) = 415152
> +SHA256 (spirv-headers-1.2.198.0.tar.gz) =
> MwGiOsoENDNqZD5DPcrKzdYAAKs9013AB4opfAYSShI=
> +SIZE (spirv-headers-1.2.198.0.tar.gz) = 416113
> Index: spirv-tools/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/spirv-tools/Makefile,v
> retrieving revision 1.9
> diff -u -p -r1.9 Makefile
> --- spirv-tools/Makefile 16 Oct 2021 14:50:40 -0000 1.9
> +++ spirv-tools/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -2,7 +2,7 @@
>
> COMMENT = API and commands for processing SPIR-V
>
> -V = 2021.3
> +V = 2021.4
> DISTNAME = spirv-tools-${V}
> GH_ACCOUNT = KhronosGroup
> GH_PROJECT = SPIRV-Tools
> Index: spirv-tools/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/spirv-tools/distinfo,v
> retrieving revision 1.6
> diff -u -p -r1.6 distinfo
> --- spirv-tools/distinfo 16 Oct 2021 14:50:40 -0000 1.6
> +++ spirv-tools/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (spirv-tools-2021.3.tar.gz) =
> trQZQSHugITGKyD41XTDL3ZuTpI33+YLBlizFtGcaxM=
> -SIZE (spirv-tools-2021.3.tar.gz) = 2847869
> +SHA256 (spirv-tools-2021.4.tar.gz) =
> 1o3iYHCN2nhdEJ/xzu7N4tKrcRQvpb9ZBhu59H3Tuyw=
> +SIZE (spirv-tools-2021.4.tar.gz) = 2887505
> Index: vulkan-headers/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-headers/Makefile,v
> retrieving revision 1.7
> diff -u -p -r1.7 Makefile
> --- vulkan-headers/Makefile 16 Oct 2021 14:50:40 -0000 1.7
> +++ vulkan-headers/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -2,7 +2,7 @@
>
> COMMENT = Vulkan header files
>
> -V = 1.2.189.1
> +V = 1.2.198.0
> PKGNAME = vulkan-headers-${V}
> GH_TAGNAME = sdk-${V}
> GH_ACCOUNT = KhronosGroup
> Index: vulkan-headers/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-headers/distinfo,v
> retrieving revision 1.5
> diff -u -p -r1.5 distinfo
> --- vulkan-headers/distinfo 16 Oct 2021 14:50:40 -0000 1.5
> +++ vulkan-headers/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (Vulkan-Headers-sdk-1.2.189.1.tar.gz) =
> zi61mV3d2P8s7ol6uRwwo11gltWZb8kc7EK/s3ES0/g=
> -SIZE (Vulkan-Headers-sdk-1.2.189.1.tar.gz) = 1191244
> +SHA256 (Vulkan-Headers-sdk-1.2.198.0.tar.gz) =
> NHgsYcrZs8zy+gox7Dl9T86ZSQUAtPN3HLGkhxP+zoA=
> +SIZE (Vulkan-Headers-sdk-1.2.198.0.tar.gz) = 1288107
> Index: vulkan-headers/pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-headers/pkg/PLIST,v
> retrieving revision 1.5
> diff -u -p -r1.5 PLIST
> --- vulkan-headers/pkg/PLIST 16 Oct 2021 14:50:40 -0000 1.5
> +++ vulkan-headers/pkg/PLIST 30 Nov 2021 03:03:21 -0000
> @@ -5,6 +5,7 @@ include/vk_video/vulkan_video_codec_h264
> include/vk_video/vulkan_video_codec_h264std_encode.h
> include/vk_video/vulkan_video_codec_h265std.h
> include/vk_video/vulkan_video_codec_h265std_decode.h
> +include/vk_video/vulkan_video_codec_h265std_encode.h
> include/vk_video/vulkan_video_codecs_common.h
> include/vulkan/
> include/vulkan/vk_icd.h
> Index: vulkan-loader/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-loader/Makefile,v
> retrieving revision 1.13
> diff -u -p -r1.13 Makefile
> --- vulkan-loader/Makefile 16 Oct 2021 14:50:40 -0000 1.13
> +++ vulkan-loader/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -2,13 +2,13 @@
>
> COMMENT = Vulkan ICD loader
>
> -V = 1.2.189.1
> +V = 1.2.198.0
> PKGNAME = vulkan-loader-${V}
> GH_TAGNAME = sdk-${V}
> GH_ACCOUNT = KhronosGroup
> GH_PROJECT = Vulkan-Loader
>
> -SHARED_LIBS += vulkan 0.1 # 1.2
> +SHARED_LIBS += vulkan 1.0 # 1.2.198
>
> CATEGORIES = devel graphics
>
> Index: vulkan-loader/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-loader/distinfo,v
> retrieving revision 1.5
> diff -u -p -r1.5 distinfo
> --- vulkan-loader/distinfo 16 Oct 2021 14:50:40 -0000 1.5
> +++ vulkan-loader/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (Vulkan-Loader-sdk-1.2.189.1.tar.gz) =
> HZ9TkVTTfOoMozY0HDsl5z1aUyDy+cnFX4MJQi/m7Dw=
> -SIZE (Vulkan-Loader-sdk-1.2.189.1.tar.gz) = 1509572
> +SHA256 (Vulkan-Loader-sdk-1.2.198.0.tar.gz) =
> fV1WKW3NiK+E7Q/elpA4NwyshgDE734yh4i3Qi2QJbs=
> +SIZE (Vulkan-Loader-sdk-1.2.198.0.tar.gz) = 1440922
> Index: vulkan-loader/patches/patch-CMakeLists_txt
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-loader/patches/patch-CMakeLists_txt,v
> retrieving revision 1.6
> diff -u -p -r1.6 patch-CMakeLists_txt
> --- vulkan-loader/patches/patch-CMakeLists_txt 16 Oct 2021 14:50:40
> -0000 1.6
> +++ vulkan-loader/patches/patch-CMakeLists_txt 30 Nov 2021 03:03:21
> -0000
> @@ -3,7 +3,7 @@ $OpenBSD: patch-CMakeLists_txt,v 1.6 202
> Index: CMakeLists.txt
> --- CMakeLists.txt.orig
> +++ CMakeLists.txt
> -@@ -100,13 +100,13 @@ set(LOADER_HELPER_FOLDER "Helper Targets")
> +@@ -188,13 +188,13 @@ set(LOADER_HELPER_FOLDER "Helper Targets")
>
> if(UNIX)
> set(
> @@ -19,7 +19,7 @@ Index: CMakeLists.txt
> CACHE
> STRING
> "Search path to use when XDG_DATA_DIRS is unset or empty or the
> current process is SUID/SGID. Default is freedesktop compliant."
> -@@ -128,6 +128,7 @@ if(UNIX AND NOT APPLE) # i.e.: Linux
> +@@ -216,6 +216,7 @@ if(UNIX AND NOT APPLE) # i.e.: Linux
>
> if(BUILD_WSI_XCB_SUPPORT)
> find_package(XCB REQUIRED)
> Index: vulkan-loader/patches/patch-loader_CMakeLists_txt
> ===================================================================
> RCS file:
> /cvs/ports/graphics/vulkan-loader/patches/patch-loader_CMakeLists_txt,v
> retrieving revision 1.7
> diff -u -p -r1.7 patch-loader_CMakeLists_txt
> --- vulkan-loader/patches/patch-loader_CMakeLists_txt 16 Oct 2021 14:50:40
> -0000 1.7
> +++ vulkan-loader/patches/patch-loader_CMakeLists_txt 30 Nov 2021 03:03:21
> -0000
> @@ -1,29 +1,18 @@
> $OpenBSD: patch-loader_CMakeLists_txt,v 1.7 2021/10/16 14:50:40 thfr Exp $
>
> -don't define _XOPEN_SOURCE=500, otherwise alloca from stdlib.h isn't
> -visible and libvulkan won't run
> -
> Index: loader/CMakeLists.txt
> --- loader/CMakeLists.txt.orig
> +++ loader/CMakeLists.txt
> -@@ -15,7 +15,7 @@
> +@@ -17,7 +17,7 @@
> # limitations under the License.
> # ~~~
>
> -include_directories(${CMAKE_CURRENT_SOURCE_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR}/generated ${CMAKE_CURRENT_BINARY_DIR})
> +include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}
> ${CMAKE_CURRENT_SOURCE_DIR}/generated ${CMAKE_CURRENT_BINARY_DIR})
>
> - # Check for the existance of the secure_getenv or __secure_getenv commands
> - include(CheckFunctionExists)
> -@@ -202,7 +202,6 @@ else(UNIX AND NOT APPLE) # i.e.: Linux
> - target_link_libraries(asm_offset Vulkan::Headers)
> - add_custom_command(OUTPUT gen_defines.asm DEPENDS asm_offset
> COMMAND asm_offset GAS)
> - add_custom_target(loader_asm_gen_files DEPENDS gen_defines.asm)
> -- target_compile_definitions(asm_offset PRIVATE _XOPEN_SOURCE=500) #
> hush compiler warnings for readlink
> - else()
> - message(WARNING "Could not find working x86 GAS
> assembler\n${ASM_FAILURE_MSG}")
> - set(OPT_LOADER_SRCS ${OPT_LOADER_SRCS} unknown_ext_chain.c)
> -@@ -300,7 +299,7 @@ else()
> + # Get version of the API the generated code used and put it into a cmake
> variable LOADER_GENERATED_HEADER_VERSION
> + include(generated/loader_generated_header_version.cmake)
> +@@ -360,7 +360,7 @@ else()
> add_library(vulkan-framework SHARED ${NORMAL_LOADER_SRCS}
> ${OPT_LOADER_SRCS} ${FRAMEWORK_HEADERS})
> endif()
> add_dependencies(vulkan-framework loader_asm_gen_files)
> @@ -32,7 +21,7 @@ Index: loader/CMakeLists.txt
> target_link_libraries(vulkan-framework Vulkan::Headers)
>
> # The FRAMEWORK_VERSION needs to be "A" here so that Xcode
> code-signing works when a user adds their framework to an Xcode
> -@@ -325,9 +324,6 @@ else()
> +@@ -385,9 +385,6 @@ else()
> # cmake-format: on
> endif()
>
> Index: vulkan-loader/patches/patch-loader_allocation_h
> ===================================================================
> RCS file: vulkan-loader/patches/patch-loader_allocation_h
> diff -N vulkan-loader/patches/patch-loader_allocation_h
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ vulkan-loader/patches/patch-loader_allocation_h 30 Nov 2021 03:03:21
> -0000
> @@ -0,0 +1,17 @@
> +$OpenBSD$
> +
> +Index: loader/allocation.h
> +--- loader/allocation.h.orig
> ++++ loader/allocation.h
> +@@ -39,8 +39,8 @@ void loader_device_heap_free(const struct loader_devic
> + void *loader_device_heap_realloc(const struct loader_device *device, void
> *pMemory, size_t orig_size, size_t size,
> + VkSystemAllocationScope alloc_scope);
> +
> +-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> ++#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> + #define loader_stack_alloc(size) alloca(size)
> + #elif defined(_WIN32)
> + #define loader_stack_alloc(size) _alloca(size)
> +-#endif // defined(_WIN32)
> +\ No newline at end of file
> ++#endif // defined(_WIN32)
> Index: vulkan-loader/patches/patch-loader_get_environment_c
> ===================================================================
> RCS file: vulkan-loader/patches/patch-loader_get_environment_c
> diff -N vulkan-loader/patches/patch-loader_get_environment_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ vulkan-loader/patches/patch-loader_get_environment_c 30 Nov 2021
> 03:03:21 -0000
> @@ -0,0 +1,21 @@
> +$OpenBSD$
> +
> +Index: loader/get_environment.c
> +--- loader/get_environment.c.orig
> ++++ loader/get_environment.c
> +@@ -37,7 +37,7 @@
> + #endif // !defined(VULKAN_NON_CMAKE_BUILD)
> +
> + // Environment variables
> +-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> ++#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> +
> + bool is_high_integrity() { return geteuid() != getuid() || getegid() !=
> getgid(); }
> +
> +@@ -169,4 +169,4 @@ void loader_free_getenv(char *val, const struct loader
> + (void)inst;
> + }
> +
> +-#endif
> +\ No newline at end of file
> ++#endif
> Index: vulkan-loader/patches/patch-loader_get_environment_h
> ===================================================================
> RCS file: vulkan-loader/patches/patch-loader_get_environment_h
> diff -N vulkan-loader/patches/patch-loader_get_environment_h
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ vulkan-loader/patches/patch-loader_get_environment_h 30 Nov 2021
> 03:03:21 -0000
> @@ -0,0 +1,19 @@
> +$OpenBSD$
> +
> +Index: loader/get_environment.h
> +--- loader/get_environment.h.orig
> ++++ loader/get_environment.h
> +@@ -35,10 +35,10 @@
> + char *loader_getenv(const char *name, const struct loader_instance *inst);
> + void loader_free_getenv(char *val, const struct loader_instance *inst);
> +
> +-#if defined(WIN32) || defined(__linux__) || defined(__APPLE__) ||
> defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__)
> ++#if defined(WIN32) || defined(__unix__) || defined(__APPLE__) ||
> defined(__Fuchsia__) || defined(__QNXNTO__) || defined(__FreeBSD__)
> +
> + bool is_high_integrity();
> +
> + char *loader_secure_getenv(const char *name, const struct loader_instance
> *inst);
> +
> +-#endif
> +\ No newline at end of file
> ++#endif
> Index: vulkan-loader/patches/patch-loader_loader_c
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-loader/patches/patch-loader_loader_c,v
> retrieving revision 1.5
> diff -u -p -r1.5 patch-loader_loader_c
> --- vulkan-loader/patches/patch-loader_loader_c 16 Oct 2021 14:50:40
> -0000 1.5
> +++ vulkan-loader/patches/patch-loader_loader_c 30 Nov 2021 03:03:21
> -0000
> @@ -6,16 +6,7 @@ fix vulkaninfo
> Index: loader/loader.c
> --- loader/loader.c.orig
> +++ loader/loader.c
> -@@ -248,7 +248,7 @@ void *loader_device_heap_realloc(const struct loader_d
> - }
> -
> - // Environment variables
> --#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__)
> -+#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__)
> -
> - static inline bool IsHighIntegrity() { return geteuid() != getuid() ||
> getegid() != getgid(); }
> -
> -@@ -7550,52 +7550,11 @@ VKAPI_ATTR VkResult VKAPI_CALL
> terminator_EnumerateDev
> +@@ -6232,52 +6232,11 @@ VKAPI_ATTR VkResult VKAPI_CALL
> terminator_EnumerateDev
> struct loader_extension_list all_exts = {0};
> struct loader_extension_list icd_exts = {0};
>
> Index: vulkan-loader/patches/patch-loader_trampoline_c
> ===================================================================
> RCS file:
> /cvs/ports/graphics/vulkan-loader/patches/patch-loader_trampoline_c,v
> retrieving revision 1.3
> diff -u -p -r1.3 patch-loader_trampoline_c
> --- vulkan-loader/patches/patch-loader_trampoline_c 16 Oct 2021 14:50:40
> -0000 1.3
> +++ vulkan-loader/patches/patch-loader_trampoline_c 30 Nov 2021 03:03:21
> -0000
> @@ -6,7 +6,7 @@ fix vulkaninfo
> Index: loader/trampoline.c
> --- loader/trampoline.c.orig
> +++ loader/trampoline.c
> -@@ -811,17 +811,61 @@ LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumera
> +@@ -815,17 +815,61 @@ LOADER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumera
>
> VkExtensionProperties *pProperties) {
> VkResult res = VK_SUCCESS;
> struct loader_physical_device_tramp *phys_dev;
> Index: vulkan-loader/patches/patch-loader_vk_loader_platform_h
> ===================================================================
> RCS file:
> /cvs/ports/graphics/vulkan-loader/patches/patch-loader_vk_loader_platform_h,v
> retrieving revision 1.4
> diff -u -p -r1.4 patch-loader_vk_loader_platform_h
> --- vulkan-loader/patches/patch-loader_vk_loader_platform_h 29 Jun 2021
> 03:48:21 -0000 1.4
> +++ vulkan-loader/patches/patch-loader_vk_loader_platform_h 30 Nov 2021
> 03:03:21 -0000
> @@ -5,23 +5,61 @@ stub loader_platform_executable_path()
> Index: loader/vk_loader_platform.h
> --- loader/vk_loader_platform.h.orig
> +++ loader/vk_loader_platform.h
> -@@ -35,7 +35,7 @@
> - #include "vulkan/vk_platform.h"
> - #include "vulkan/vk_sdk_platform.h"
> +@@ -42,7 +42,7 @@
> + #include "dlopen_fuchsia.h"
> + #endif // defined(__Fuchsia__)
>
> --#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__)
> -+#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__)
> +-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> ++#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> + #include <unistd.h>
> + // Note: The following file is for dynamic loading:
> + #include <dlfcn.h>
> +@@ -50,7 +50,7 @@
> + #include <stdlib.h>
> + #include <libgen.h>
> +
> +-#elif defined(_WIN32) // defined(__linux__)
> ++#elif defined(_WIN32) // defined(__unix__)
> + /* Windows-specific common code: */
> + // WinBase.h defines CreateSemaphore and synchapi.h defines CreateEvent
> + // undefine them to avoid conflicts with VkLayerDispatchTable struct
> members.
> +@@ -102,7 +102,7 @@
> + // Override layer information
> + #define VK_OVERRIDE_LAYER_NAME "VK_LAYER_LUNARG_override"
> +
> +-#if defined(__linux__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> ++#if defined(__unix__) || defined(__APPLE__) || defined(__Fuchsia__) ||
> defined(__QNXNTO__) || defined(__FreeBSD__)
> /* Linux-specific common code: */
>
> - // Headers:
> -@@ -121,6 +121,10 @@ static inline char *loader_platform_executable_path(ch
> - if (ret <= 0) return NULL;
> - buffer[ret] = '\0';
> + // VK Library Filenames, Paths, etc.:
> +@@ -156,7 +156,7 @@ static inline bool loader_platform_is_path_absolute(co
> +
> + static inline char *loader_platform_dirname(char *path) { return
> dirname(path); }
> +
> +-#if defined(__linux__)
> ++#if defined(__unix__)
> +
> + // find application path + name. Path cannot be longer than 1024, returns
> NULL if it is greater than that.
> + static inline char *loader_platform_executable_path(char *buffer, size_t
> size) {
> +@@ -166,7 +166,11 @@ static inline char *loader_platform_executable_path(ch
> + buffer[count] = '\0';
> return buffer;
> -+}
> + }
> +-#elif defined(__APPLE__) // defined(__linux__)
> +#elif defined(__OpenBSD__) // defined(__APPLE__)
> +static inline char *loader_platform_executable_path(char *buffer, size_t
> size) {
> + return NULL;
> ++}
> ++#elif defined(__APPLE__) // defined(__unix__)
> + #include <libproc.h>
> + static inline char *loader_platform_executable_path(char *buffer, size_t
> size) {
> + pid_t pid = getpid();
> +@@ -293,7 +297,7 @@ static inline void loader_platform_thread_cond_wait(lo
> }
> - #elif defined(__Fuchsia__)
> - static inline char *loader_platform_executable_path(char *buffer, size_t
> size) { return NULL; }
> + static inline void
> loader_platform_thread_cond_broadcast(loader_platform_thread_cond *pCond) {
> pthread_cond_broadcast(pCond); }
> +
> +-#elif defined(_WIN32) // defined(__linux__)
> ++#elif defined(_WIN32) // defined(__unix__)
> +
> + // VK Library Filenames, Paths, etc.:
> + #define PATH_SEPARATOR ';'
> Index: vulkan-tools/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-tools/Makefile,v
> retrieving revision 1.9
> diff -u -p -r1.9 Makefile
> --- vulkan-tools/Makefile 16 Oct 2021 14:50:40 -0000 1.9
> +++ vulkan-tools/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -2,7 +2,7 @@
>
> COMMENT = Vulkan Utilities and Tools
>
> -V = 1.2.189.1
> +V = 1.2.198.0
> PKGNAME = vulkan-tools-${V}
> GH_TAGNAME = sdk-${V}
> GH_ACCOUNT = KhronosGroup
> Index: vulkan-tools/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-tools/distinfo,v
> retrieving revision 1.5
> diff -u -p -r1.5 distinfo
> --- vulkan-tools/distinfo 16 Oct 2021 14:50:40 -0000 1.5
> +++ vulkan-tools/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (Vulkan-Tools-sdk-1.2.189.1.tar.gz) =
> 712wk0/3GSZXu/xnX24+HuAJ8q00qrkV0r2Zk6Wa3YE=
> -SIZE (Vulkan-Tools-sdk-1.2.189.1.tar.gz) = 849117
> +SHA256 (Vulkan-Tools-sdk-1.2.198.0.tar.gz) =
> BuF0vKeDTfc9xs48KnKrO8NLY+Fv25pIa/ExXwJ2gDI=
> +SIZE (Vulkan-Tools-sdk-1.2.198.0.tar.gz) = 847429
> Index: vulkan-tools/patches/patch-vulkaninfo_vulkaninfo_h
> ===================================================================
> RCS file:
> /cvs/ports/graphics/vulkan-tools/patches/patch-vulkaninfo_vulkaninfo_h,v
> retrieving revision 1.3
> diff -u -p -r1.3 patch-vulkaninfo_vulkaninfo_h
> --- vulkan-tools/patches/patch-vulkaninfo_vulkaninfo_h 16 Oct 2021
> 14:50:40 -0000 1.3
> +++ vulkan-tools/patches/patch-vulkaninfo_vulkaninfo_h 30 Nov 2021
> 03:03:21 -0000
> @@ -46,7 +46,7 @@ Index: vulkaninfo/vulkaninfo.h
> void *library;
> #elif defined(_WIN32)
> HMODULE library;
> -@@ -1753,4 +1753,4 @@ std::unordered_map<PropFlags, std::vector<VkFormat>> F
> +@@ -1765,4 +1765,4 @@ std::unordered_map<PropFlags, std::vector<VkFormat>> F
> }
> }
> return map;
> Index: vulkan-validation-layers/Makefile
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-validation-layers/Makefile,v
> retrieving revision 1.9
> diff -u -p -r1.9 Makefile
> --- vulkan-validation-layers/Makefile 16 Oct 2021 14:50:41 -0000 1.9
> +++ vulkan-validation-layers/Makefile 30 Nov 2021 03:03:21 -0000
> @@ -2,7 +2,7 @@
>
> COMMENT = Vulkan Validation Layers
>
> -V = 1.2.189.1
> +V = 1.2.198.0
> PKGNAME = vulkan-validation-layers-${V}
> GH_TAGNAME = sdk-${V}
> GH_ACCOUNT = KhronosGroup
> Index: vulkan-validation-layers/distinfo
> ===================================================================
> RCS file: /cvs/ports/graphics/vulkan-validation-layers/distinfo,v
> retrieving revision 1.5
> diff -u -p -r1.5 distinfo
> --- vulkan-validation-layers/distinfo 16 Oct 2021 14:50:41 -0000 1.5
> +++ vulkan-validation-layers/distinfo 30 Nov 2021 03:03:21 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (Vulkan-ValidationLayers-sdk-1.2.189.1.tar.gz) =
> 0Wmuca47oSFZ3zVbWPhvVjUGLGldHerJuX1WU1YdUX0=
> -SIZE (Vulkan-ValidationLayers-sdk-1.2.189.1.tar.gz) = 3403465
> +SHA256 (Vulkan-ValidationLayers-sdk-1.2.198.0.tar.gz) =
> SnDMXaJrr4c/z2mwge7tpUVRXdZuWQTxj+4ytNJ1WTo=
> +SIZE (Vulkan-ValidationLayers-sdk-1.2.198.0.tar.gz) = 3555293
> Index: vulkan-validation-layers/patches/patch-CMakeLists_txt
> ===================================================================
> RCS file:
> /cvs/ports/graphics/vulkan-validation-layers/patches/patch-CMakeLists_txt,v
> retrieving revision 1.4
> diff -u -p -r1.4 patch-CMakeLists_txt
> --- vulkan-validation-layers/patches/patch-CMakeLists_txt 16 Oct 2021
> 14:50:41 -0000 1.4
> +++ vulkan-validation-layers/patches/patch-CMakeLists_txt 30 Nov 2021
> 03:03:21 -0000
> @@ -3,7 +3,7 @@ $OpenBSD: patch-CMakeLists_txt,v 1.4 202
> Index: CMakeLists.txt
> --- CMakeLists.txt.orig
> +++ CMakeLists.txt
> -@@ -156,6 +156,7 @@ if(UNIX AND NOT APPLE) # i.e. Linux
> +@@ -153,6 +153,7 @@ if(UNIX AND NOT APPLE) # i.e. Linux
>
> if(BUILD_WSI_XCB_SUPPORT)
> find_package(XCB REQUIRED)
> Index: vulkan-validation-layers/patches/patch-layers_vk_loader_platform_h
> ===================================================================
> RCS file:
> /cvs/ports/graphics/vulkan-validation-layers/patches/patch-layers_vk_loader_platform_h,v
> retrieving revision 1.2
> diff -u -p -r1.2 patch-layers_vk_loader_platform_h
> --- vulkan-validation-layers/patches/patch-layers_vk_loader_platform_h
> 7 Jul 2020 08:08:08 -0000 1.2
> +++ vulkan-validation-layers/patches/patch-layers_vk_loader_platform_h
> 30 Nov 2021 03:03:21 -0000
> @@ -7,8 +7,17 @@ Index: layers/vk_loader_platform.h
> #undef NOMINMAX
> #include "vulkan/vk_sdk_platform.h"
>
> --#if defined(__linux__) || defined(__APPLE__)
> -+#if defined(__linux__) || defined(__APPLE__) || defined(__unix__)
> +-#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
> ++#if defined(__unix__) || defined(__APPLE__) || defined(__FreeBSD__)
> /* Linux-specific common code: */
>
> // Headers:
> +@@ -145,7 +145,7 @@ static inline void loader_platform_thread_cond_broadca
> +
> + #define loader_stack_alloc(size) alloca(size)
> +
> +-#elif defined(_WIN32) // defined(__linux__)
> ++#elif defined(_WIN32) // defined(__unix__)
> + /* Windows-specific common code: */
> + // WinBase.h defines CreateSemaphore and synchapi.h defines CreateEvent
> + // undefine them to avoid conflicts with VkLayerDispatchTable struct
> members.