From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 06/80] shaderc: upgrade 2019.0 -> 2020.3
Date: Mon, 2 Nov 2020 17:47:53 +0100 [thread overview]
Message-ID: <20201102164907.27572-6-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20201102164907.27572-1-alex.kanavin@gmail.com>
Remove 0002-shaderc-2019.0-fix-build-against-new-glslang.patch
as issue fixed upstream.
Rebase 0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
...link-order-of-libglslang-and-libHLSL.patch | 30 ++++----
...2019.0-fix-build-against-new-glslang.patch | 73 -------------------
.../{shaderc_2019.0.bb => shaderc_2020.3.bb} | 3 +-
3 files changed, 15 insertions(+), 91 deletions(-)
delete mode 100644 meta/recipes-graphics/shaderc/files/0002-shaderc-2019.0-fix-build-against-new-glslang.patch
rename meta/recipes-graphics/shaderc/{shaderc_2019.0.bb => shaderc_2020.3.bb} (90%)
diff --git a/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch b/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
index 1ca84a29bb..7102e25bcf 100644
--- a/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
+++ b/meta/recipes-graphics/shaderc/files/0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch
@@ -1,7 +1,7 @@
-From 53f1f5c714df1f0a2eb57c1ce00bc66fc9a1690e Mon Sep 17 00:00:00 2001
+From 0b9468d4face34879214f500b15e810cdd1a81a1 Mon Sep 17 00:00:00 2001
From: Niklas Haas <git@haasn.xyz>
Date: Tue, 29 May 2018 07:34:00 +0200
-Subject: [PATCH 1/3] Fix the link order of libglslang and libHLSL
+Subject: [PATCH] Fix the link order of libglslang and libHLSL
libglslang depends on libHLSL, so the latter needs to be specified last.
This fixes an issue when trying to build shaderc against system-wide
@@ -13,29 +13,30 @@ Additionally, libshaderc_util also depends on SPIRV-Tools
Upstream-Status: Backport [21c8be385b3fab5edcb934a6d99f69fd389c4e67]
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
+
---
glslc/CMakeLists.txt | 2 +-
libshaderc_util/CMakeLists.txt | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/glslc/CMakeLists.txt b/glslc/CMakeLists.txt
-index acf6fb0..0f5d888 100644
+index 31664d1..35b3f19 100644
--- a/glslc/CMakeLists.txt
+++ b/glslc/CMakeLists.txt
-@@ -18,7 +18,7 @@ add_library(glslc STATIC
- shaderc_default_compile_options(glslc)
- target_include_directories(glslc PUBLIC ${glslang_SOURCE_DIR})
- target_link_libraries(glslc PRIVATE glslang OSDependent OGLCompiler
-- HLSL glslang SPIRV ${CMAKE_THREAD_LIBS_INIT})
-+ glslang SPIRV HLSL ${CMAKE_THREAD_LIBS_INIT})
- target_link_libraries(glslc PRIVATE shaderc_util shaderc)
+@@ -43,7 +43,7 @@ if (SHADERC_ENABLE_WGSL_OUTPUT)
+ endif(SHADERC_ENABLE_WGSL_OUTPUT)
- add_executable(glslc_exe src/main.cc)
+ target_link_libraries(glslc PRIVATE
+- glslang OSDependent OGLCompiler HLSL glslang SPIRV # Glslang libraries
++ glslang OSDependent OGLCompiler glslang SPIRV HLSL # Glslang libraries
+ $<$<BOOL:${SHADERC_ENABLE_WGSL_OUTPUT}>:libtint> # Tint libraries, optional
+ shaderc_util shaderc # internal Shaderc libraries
+ ${CMAKE_THREAD_LIBS_INIT})
diff --git a/libshaderc_util/CMakeLists.txt b/libshaderc_util/CMakeLists.txt
-index ec0e8fb..ded089d 100644
+index 48f9991..984cc06 100644
--- a/libshaderc_util/CMakeLists.txt
+++ b/libshaderc_util/CMakeLists.txt
-@@ -28,8 +28,8 @@ target_include_directories(shaderc_util
+@@ -46,8 +46,8 @@ add_definitions(-DENABLE_HLSL)
find_package(Threads)
target_link_libraries(shaderc_util PRIVATE
@@ -46,6 +47,3 @@ index ec0e8fb..ded089d 100644
shaderc_add_tests(
TEST_PREFIX shaderc_util
---
-2.28.0
-
diff --git a/meta/recipes-graphics/shaderc/files/0002-shaderc-2019.0-fix-build-against-new-glslang.patch b/meta/recipes-graphics/shaderc/files/0002-shaderc-2019.0-fix-build-against-new-glslang.patch
deleted file mode 100644
index b31b88de48..0000000000
--- a/meta/recipes-graphics/shaderc/files/0002-shaderc-2019.0-fix-build-against-new-glslang.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From 44e99802fa16bb5b53b5e80c2c84f305802d494d Mon Sep 17 00:00:00 2001
-From: Jose Quaresma <quaresma.jose@gmail.com>
-Date: Tue, 13 Oct 2020 15:20:11 +0100
-Subject: [PATCH 2/3] shaderc-2019.0: fix build against new glslang
-
-posted to the arch package repository by: svenstaro@gmail.com
-https://github.com/archlinux/svntogit-packages/commit/72283b634a0bd7c8d99cc605e273fe1294b77b44
-
-Upstream-Status: Pending
-
-Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
----
- libshaderc/src/shaderc.cc | 2 +-
- libshaderc_util/src/compiler.cc | 10 +---------
- 2 files changed, 2 insertions(+), 10 deletions(-)
-
-diff --git a/libshaderc/src/shaderc.cc b/libshaderc/src/shaderc.cc
-index 3c3c3de..b5fc6cb 100644
---- a/libshaderc/src/shaderc.cc
-+++ b/libshaderc/src/shaderc.cc
-@@ -20,7 +20,7 @@
- #include <sstream>
- #include <vector>
-
--#include "SPIRV/spirv.hpp"
-+#include "glslang/SPIRV/spirv.hpp"
-
- #include "libshaderc_util/compiler.h"
- #include "libshaderc_util/counting_includer.h"
-diff --git a/libshaderc_util/src/compiler.cc b/libshaderc_util/src/compiler.cc
-index ef7867f..acc172b 100644
---- a/libshaderc_util/src/compiler.cc
-+++ b/libshaderc_util/src/compiler.cc
-@@ -26,7 +26,7 @@
- #include "libshaderc_util/string_piece.h"
- #include "libshaderc_util/version_profile.h"
-
--#include "SPIRV/GlslangToSpv.h"
-+#include "glslang/SPIRV/GlslangToSpv.h"
-
- namespace {
- using shaderc_util::string_piece;
-@@ -291,17 +291,12 @@ std::tuple<bool, std::vector<uint32_t>, size_t> Compiler::Compile(
- bases[static_cast<int>(UniformKind::StorageBuffer)]);
- shader.setShiftUavBinding(
- bases[static_cast<int>(UniformKind::UnorderedAccessView)]);
-- shader.setHlslIoMapping(hlsl_iomap_);
- shader.setResourceSetBinding(
- hlsl_explicit_bindings_[static_cast<int>(used_shader_stage)]);
- shader.setEnvClient(target_client_info.client,
- target_client_info.client_version);
- shader.setEnvTarget(target_client_info.target_language,
- target_client_info.target_language_version);
-- if (hlsl_functionality1_enabled_) {
-- shader.setEnvTargetHlslFunctionality1();
-- }
--
- const EShMessages rules = GetMessageRules(target_env_, source_language_,
- hlsl_offsets_,
- generate_debug_info_);
-@@ -478,9 +473,6 @@ std::tuple<bool, std::string, std::string> Compiler::PreprocessShader(
- }
- shader.setEnvClient(target_client_info.client,
- target_client_info.client_version);
-- if (hlsl_functionality1_enabled_) {
-- shader.setEnvTargetHlslFunctionality1();
-- }
-
- // The preprocessor might be sensitive to the target environment.
- // So combine the existing rules with the just-give-me-preprocessor-output
---
-2.28.0
-
diff --git a/meta/recipes-graphics/shaderc/shaderc_2019.0.bb b/meta/recipes-graphics/shaderc/shaderc_2020.3.bb
similarity index 90%
rename from meta/recipes-graphics/shaderc/shaderc_2019.0.bb
rename to meta/recipes-graphics/shaderc/shaderc_2020.3.bb
index 3bd9c61a55..f5edf53caf 100644
--- a/meta/recipes-graphics/shaderc/shaderc_2019.0.bb
+++ b/meta/recipes-graphics/shaderc/shaderc_2020.3.bb
@@ -6,10 +6,9 @@ HOMEPAGE = "https://github.com/google/shaderc"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
-SRCREV = "34c412f21f945f4ef6ed4453f8b5dc4bb9d739e4"
+SRCREV = "1fce59794079f90ceb091190adbbb5499acd4e95"
SRC_URI = "git://github.com/google/shaderc.git;protocol=https;branch=main \
file://0001-Fix-the-link-order-of-libglslang-and-libHLSL.patch \
- file://0002-shaderc-2019.0-fix-build-against-new-glslang.patch \
file://0003-cmake-de-vendor-libs-and-disable-git-versioning.patch \
"
S = "${WORKDIR}/git"
--
2.29.0
next prev parent reply other threads:[~2020-11-02 16:49 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 16:47 [PATCH 01/80] spirv-tools: correctly set PV Alexander Kanavin
2020-11-02 16:47 ` [PATCH 02/80] spirv-tools: upgrade 2019.5 -> 2020.5 Alexander Kanavin
2020-11-02 16:47 ` [PATCH 03/80] glslang: fix upstream version check Alexander Kanavin
2020-11-02 16:47 ` [PATCH 04/80] glslang: upgrade 8.13.3559 -> 8.13.3743 Alexander Kanavin
2020-11-02 16:47 ` [PATCH 05/80] glslang: bump to a newer commit Alexander Kanavin
2020-11-02 16:47 ` Alexander Kanavin [this message]
2020-11-02 16:47 ` [PATCH 07/80] vulkan: update 1.2.135 -> 1.2.154 Alexander Kanavin
2020-11-02 16:47 ` [PATCH 08/80] vulkan-samples: replace vulkan-demos Alexander Kanavin
2020-11-02 16:47 ` [PATCH 09/80] piglit: upgrade to latest revision Alexander Kanavin
2020-11-02 16:47 ` [PATCH 10/80] acpica: upgrade 20200717 -> 20200925 Alexander Kanavin
2020-11-02 16:47 ` [PATCH 11/80] adwaita-icon-theme: upgrade 3.36.1 -> 3.38.0 Alexander Kanavin
2020-11-02 16:47 ` [PATCH 12/80] at-spi2-atk: upgrade 2.34.2 -> 2.38.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 13/80] at-spi2-core: upgrade 2.36.1 " Alexander Kanavin
2020-11-02 16:48 ` [PATCH 14/80] bison: upgrade 3.7.2 -> 3.7.3 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 15/80] createrepo-c: upgrade 0.16.0 -> 0.16.1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 16/80] curl: upgrade 7.72.0 -> 7.73.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 17/80] debianutils: upgrade 4.11.1 -> 4.11.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 18/80] dhcpcd: upgrade 9.2.0 -> 9.3.1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 19/80] dmidecode: upgrade 3.2 -> 3.3 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 20/80] dnf: upgrade 4.2.23 -> 4.4.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 21/80] ethtool: upgrade 5.8 -> 5.9 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 22/80] expat: upgrade 2.2.9 -> 2.2.10 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 23/80] gcr: upgrade 3.36.0 -> 3.38.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 24/80] glib-networking: upgrade 2.64.3 -> 2.66.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 25/80] gtk+3: upgrade 3.24.22 -> 3.24.23 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 26/80] help2man: upgrade 1.47.15 -> 1.47.16 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 27/80] i2c-tools: upgrade 4.1 -> 4.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 28/80] iw: upgrade 5.8 -> 5.9 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 29/80] kmscube: upgrade to latest revision Alexander Kanavin
2020-11-02 16:48 ` [PATCH 30/80] less: upgrade 562 -> 563 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 31/80] libdnf: upgrade 0.48.0 -> 0.54.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 32/80] libgudev: upgrade 233 -> 234 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 33/80] libinput: upgrade 1.16.1 -> 1.16.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 34/80] libuv: upgrade 1.39.0 -> 1.40.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 35/80] libva: upgrade 2.8.0 -> 2.9.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 36/80] libva-utils: update 2.8.0 -> 2.9.1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 37/80] libwpe: upgrade 1.7.1 -> 1.8.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 38/80] libxkbcommon: upgrade 0.10.0 -> 1.0.1 Alexander Kanavin
2020-11-03 20:38 ` [OE-core] " Martin Jansa
2020-11-02 16:48 ` [PATCH 39/80] openssh: upgrade 8.3p1 -> 8.4p1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 40/80] openssl: upgrade 1.1.1g -> 1.1.1h Alexander Kanavin
2020-11-02 16:48 ` [PATCH 41/80] strace: upgrade 5.8 -> 5.9 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 42/80] sudo: upgrade 1.9.3 -> 1.9.3p1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 43/80] vala: upgrade 0.48.9 -> 0.50.1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 44/80] wpebackend-fdo: upgrade 1.7.1 -> 1.8.0 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 45/80] xkeyboard-config: upgrade 2.30 -> 2.31 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 46/80] u-boot: upgrade 2020.07 -> 2020.10 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 47/80] usbutils: upgrade 012 -> 013 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 48/80] kea: upgrade 1.7.10 -> 1.9.1 Alexander Kanavin
2020-11-02 17:19 ` [OE-core] " akuster
2020-11-02 17:24 ` Alexander Kanavin
[not found] ` <1643C0CD4D3FE498.21917@lists.openembedded.org>
2020-11-02 20:19 ` Alexander Kanavin
2020-11-02 16:48 ` [PATCH 49/80] nfs-utils: upgrade 2.5.1 -> 2.5.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 50/80] dropbear: upgrade 2020.80 -> 2020.81 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 51/80] btrfs-tools: upgrade 5.7 -> 5.9 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 52/80] git: upgrade 2.28.0 -> 2.29.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 53/80] go: upgrade 1.15.2 -> 1.15.3 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 54/80] mtools: upgrade 4.0.24 -> 4.0.25 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 55/80] python3-numpy: upgrade 1.19.1 -> 1.19.3 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 56/80] python3-git: upgrade 3.1.7 -> 3.1.11 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 57/80] python3-pyelftools: upgrade 0.26 -> 0.27 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 58/80] python3-pygments: upgrade 2.6.1 -> 2.7.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 59/80] python3-setuptools: upgrade 49.6.0 -> 50.3.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 60/80] asciidoc: upgrade 9.0.2 -> 9.0.4 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 61/80] iptables: upgrade 1.8.5 -> 1.8.6 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 62/80] libsolv: upgrade 0.7.14 -> 0.7.16 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 63/80] stress-ng: upgrade 0.11.21 -> 0.11.23 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 64/80] libhandy: upgrade 1.0.0 -> 1.0.1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 65/80] freetype: upgrade 2.10.2 -> 2.10.4 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 66/80] linux-firmware: upgrade 20200817 -> 20201022 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 67/80] alsa: upgrade 1.2.3 -> 1.2.4 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 68/80] gstreamer1.0: upgrade 1.18.0 -> 1.18.1 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 69/80] x264: upgrade to latest revision Alexander Kanavin
2020-11-02 16:48 ` [PATCH 70/80] rt-tests/hwlatdetect: upgrade 1.8 -> 1.9 Alexander Kanavin
2020-11-03 18:43 ` [OE-core] " Khem Raj
2020-11-03 19:17 ` Alexander Kanavin
2020-11-03 19:25 ` Khem Raj
2020-11-03 19:52 ` Alexander Kanavin
2020-11-03 20:00 ` Khem Raj
2020-11-02 16:48 ` [PATCH 71/80] webkitgtk: upgrade 2.30.1 -> 2.30.2 Alexander Kanavin
2020-11-02 16:48 ` [PATCH 72/80] diffoscope: upgrade 160 -> 161 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 73/80] enchant2: upgrade 2.2.9 -> 2.2.12 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 74/80] libassuan: upgrade 2.5.3 -> 2.5.4 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 75/80] libcap-ng: upgrade 0.7.11 -> 0.8 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 76/80] libevdev: upgrade 1.9.1 -> 1.10.0 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 77/80] libgcrypt: upgrade 1.8.6 -> 1.8.7 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 78/80] libmpc: upgrade 1.2.0 -> 1.2.1 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 79/80] libsoup-2.4: upgrade 2.70.0 -> 2.72.0 Alexander Kanavin
2020-11-02 16:49 ` [PATCH 80/80] numactl: upgrade 2.0.13 -> 2.0.14 Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201102164907.27572-6-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox