Created attachment 186206[details]
The patch
Vulkan drivers in Mesa are enabled with bug #221540.
This patch adds the graphics/vulkan-sdk port. It installs the Vulkan ICD loader that loads these drivers, as well as headers, validation layers and demos.
Its build dependencies, devel/glslang-devel and devel/spirv-tools-devel, are provided too. The git revisions in these ports are the ones listed in the vulkan-sdk source, e.g. https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/sdk-1.0.57.0/external_revisions/glslang_revision
These two dependencies shouldn't actually be required for building without demos and tests, but the provided CMake config ALWAYS requires them.
And yes, the version of glslang actually is "Overload400-PrecQual.2000 12-Apr-2017". That's what the binary reports. No, I have no idea what they're smoking at Khronos :D

Created attachment 186513[details]
vulkan-sdk-glslang-devel-spirv-tools-devel.patch (v2)
Thanks a lot for the review! Didn't know about some things (like _CMAKE_BOOL).
Yeah, the license looks exactly like BSD3CLAUSE. I guess they just called it "modified" because they wrote their names in :D
For the ifdef, using __unix__ now, which is supposedly also NOT APPLE. By the way, Apple doesn't have Vulkan, except via a 3rd party commercial library that translates Vulkan to Apple's Metal.

Created attachment 195987[details]
vulkan-1_1_82.patch
Update to 1.1.82 — no longer one monolithic port, since the original repo has exploded into four :)
Note: wayland-egl is depended on from the wayland port instead of the mesa port (bug 227423).