From 846cdbdbf965fc50478bcc4c6436e3dc6a489f3f Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 14 Oct 2021 19:01:18 -0400 Subject: Initial commit. --- .../chromium/files/chromium-swiftshader-77.patch | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 www-client/chromium/files/chromium-swiftshader-77.patch (limited to 'www-client/chromium/files/chromium-swiftshader-77.patch') diff --git a/www-client/chromium/files/chromium-swiftshader-77.patch b/www-client/chromium/files/chromium-swiftshader-77.patch new file mode 100644 index 0000000..34d5032 --- /dev/null +++ b/www-client/chromium/files/chromium-swiftshader-77.patch @@ -0,0 +1,53 @@ +diff --git a/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn b/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn +index f4c826d..993ca6a 100644 +--- a/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn ++++ b/third_party/swiftshader/src/OpenGL/libEGL/BUILD.gn +@@ -78,6 +78,9 @@ + if (use_x11) { + sources += [ "../../Main/libX11.cpp" ] + } ++ inputs = [ ++ "libEGL.lds", ++ ] + ldflags = + [ "-Wl,--version-script=" + rebase_path("libEGL.lds", root_build_dir) ] + } +diff --git a/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn b/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn +index 571b08a..d7037ca 100644 +--- a/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn ++++ b/third_party/swiftshader/src/OpenGL/libGLESv2/BUILD.gn +@@ -127,6 +127,9 @@ + if (is_mac) { + ldflags = [ "-Wl,-install_name,@rpath/libswiftshader_libGLESv2.dylib" ] + } else if (is_linux) { ++ inputs = [ ++ "libGLESv2.lds", ++ ] + ldflags = [ "-Wl,--version-script=" + + rebase_path("libGLESv2.lds", root_build_dir) ] + } +diff --git a/third_party/swiftshader/src/Vulkan/BUILD.gn b/third_party/swiftshader/src/Vulkan/BUILD.gn +index 2627f03..6aeaec8 100644 +--- a/third_party/swiftshader/src/Vulkan/BUILD.gn ++++ b/third_party/swiftshader/src/Vulkan/BUILD.gn +@@ -99,7 +99,6 @@ + "VulkanPlatform.h", + "libVulkan.cpp", + "libvk_swiftshader.def", +- "libvk_swiftshader.lds", + "main.cpp", + "resource.h", + ] +@@ -109,8 +108,10 @@ + output_name = "libvulkan" + output_dir = "$root_out_dir/swiftshader" + +- if (is_linux) +- { ++ if (is_linux) { ++ inputs = [ ++ "libvk_swiftshader.lds", ++ ] + ldflags = [ "-Wl,--version-script=" + + rebase_path("libvk_swiftshader.lds", root_build_dir) ] + } -- cgit v1.2.3