aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-gpu_vulkan_vulkan__function__pointers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-gpu_vulkan_vulkan__function__pointers.cc')
-rw-r--r--devel/electron13/files/patch-gpu_vulkan_vulkan__function__pointers.cc56
1 files changed, 56 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-gpu_vulkan_vulkan__function__pointers.cc b/devel/electron13/files/patch-gpu_vulkan_vulkan__function__pointers.cc
new file mode 100644
index 000000000000..cfcba8c77cf2
--- /dev/null
+++ b/devel/electron13/files/patch-gpu_vulkan_vulkan__function__pointers.cc
@@ -0,0 +1,56 @@
+--- gpu/vulkan/vulkan_function_pointers.cc.orig 2021-07-15 19:13:40 UTC
++++ gpu/vulkan/vulkan_function_pointers.cc
+@@ -898,7 +898,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer
+ }
+ #endif // defined(OS_ANDROID)
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
+ if (gfx::HasExtension(enabled_extensions,
+ VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME)) {
+ vkGetSemaphoreFdKHR = reinterpret_cast<PFN_vkGetSemaphoreFdKHR>(
+@@ -917,7 +917,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer
+ return false;
+ }
+ }
+-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
+
+ #if defined(OS_WIN)
+ if (gfx::HasExtension(enabled_extensions,
+@@ -942,7 +942,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer
+ }
+ #endif // defined(OS_WIN)
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
+ if (gfx::HasExtension(enabled_extensions,
+ VK_KHR_EXTERNAL_MEMORY_FD_EXTENSION_NAME)) {
+ vkGetMemoryFdKHR = reinterpret_cast<PFN_vkGetMemoryFdKHR>(
+@@ -962,7 +962,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer
+ return false;
+ }
+ }
+-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
+
+ #if defined(OS_WIN)
+ if (gfx::HasExtension(enabled_extensions,
+@@ -1111,7 +1111,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer
+ }
+ }
+
+-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
++#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+ if (gfx::HasExtension(enabled_extensions,
+ VK_EXT_IMAGE_DRM_FORMAT_MODIFIER_EXTENSION_NAME)) {
+ vkGetImageDrmFormatModifierPropertiesEXT =
+@@ -1124,7 +1124,7 @@ bool VulkanFunctionPointers::BindDeviceFunctionPointer
+ return false;
+ }
+ }
+-#endif // defined(OS_LINUX) || defined(OS_CHROMEOS)
++#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
+
+ return true;
+ }