diff mbox series

[v2] spirv-tools: upgrade 1.4.357.0 -> 1.4.363.0

Message ID 20260930-mathieu-upgrades-2026-02-29-v2-1-242276052d85@bootlin.com
State New
Headers show
Series [v2] spirv-tools: upgrade 1.4.357.0 -> 1.4.363.0 | expand

Commit Message

Mathieu Dubois-Briand Sept. 30, 2026, 3:51 p.m. UTC
v2026.4 2026-09-09
  - Optimizer
    - Add pass to convert typed pointers to untyped pointers (`--convert-to-
      untyped`)
    - Support optimizing shaders using SPV_KHR_opacity_micromap across dead-code
      elimination and local passes
    - Add folding rule to dissolve OpCopyLogical of OpCompositeConstruct in
      simplification pass
    - Harden optimizer passes against ID overflow (#6851, #6852, #6857, #6858,
      #6863)
    - Filter duplicate decorations during module serialization to binary
    - Correctness fixes for vector constant folding size and OpSelect folding
      pre-SPIR-V 1.4 (#6798, #6827)
    - Stability fixes for IRContext analysis handling, debug info stripping, and
      eliminate dead functions (#6765, #6797, #6799)
  - Validator
    - Support and validate SPV_EXT_cooperative_matrix_maintenance1
    - Support and validate SPV_QCOM_image_processing3 and OpImageGatherQCOM
    - Add validation for NonSemantic.DebugPrintf extended instruction set
    - Validate OpAbortKHR explicit layout message type and require scalar
      packing (#6854, #6859)
    - Tighten relaxed block layout alignments and add explicit alignment VUIDs
      (#6819, #6853)
    - Validate Offset decoration on Input/Output storage classes and add VUID
      12509 (#6835, #6855)
    - Allow OpExtInstWithForwardRefsKHR in generic non-semantic instruction sets
    - Restrict Workgroup execution scope to OpGroupNonUniformRotateKHR for non-
      uniform group operations
    - Validate OpControlBarrierArriveEXT execution and memory scopes
    - Allow Generic pointer casts to and from CodeSectionINTEL storage class
    - Allow BFloat16 and FP8 result types in OpExtInst
    - Validate OpSourceContinued order following OpSource
    - Correctness fixes for >64-bit integer constant evaluation and
      AliasScopeINTELMask/NoAliasINTELMask operand counting (#6816, #6791,
      #6865)
    - Validate ArrayStride on OpConstantDataKHR result types
    - Add validation for UTFEncodedKHR decoration on array types
    - Validate that OpAbortKHR Message Type is a concrete type
  - Linker
    - Detect duplicate exported definitions without imports to prevent ODR
      violations
  - Assembler/Disassembler
    - Initialize parsed operand floating-point encoding to ensure deterministic
      disassembly of literal floats

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
Changes in v2:
- Fix build on with g++ 12
- Link to v1: https://lore.kernel.org/r/20260930-mathieu-upgrades-2026-02-29-v1-0-102c38be04df@bootlin.com
---
 ...0001-CMakeLists-Do-not-use-fno-exceptions.patch | 30 ++++++++++++++++++++++
 ...tools_1.4.357.0.bb => spirv-tools_1.4.363.0.bb} |  7 ++---
 2 files changed, 34 insertions(+), 3 deletions(-)


---
base-commit: b2c42ac2a70fbbee2df1fbda2199643d5e5bb66d
change-id: 20260930-mathieu-upgrades-2026-02-29-6d077838f244

Best regards,
diff mbox series

Patch

diff --git a/meta/recipes-graphics/spir/spirv-tools/0001-CMakeLists-Do-not-use-fno-exceptions.patch b/meta/recipes-graphics/spir/spirv-tools/0001-CMakeLists-Do-not-use-fno-exceptions.patch
new file mode 100644
index 000000000000..1169a02646f0
--- /dev/null
+++ b/meta/recipes-graphics/spir/spirv-tools/0001-CMakeLists-Do-not-use-fno-exceptions.patch
@@ -0,0 +1,30 @@ 
+From f11c932f15c91c3cb7579df8c8f9adf73a23f261 Mon Sep 17 00:00:00 2001
+From: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
+Date: Wed, 30 Sep 2026 11:21:27 +0000
+Subject: [PATCH] CMakeLists: Do not use -fno-exceptions
+
+Build is failing with g++ 12.2 (Debian 12) with -fno-exceptions. Build
+without it.
+
+Upstream-Status: Inappropriate [OE specific]
+Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b69ec9fb54f8..e666cf51111a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -188,7 +188,7 @@ function(spvtools_default_compile_options TARGET)
+   if (${COMPILER_IS_LIKE_GNU})
+     target_compile_options(${TARGET} PRIVATE
+       -Wall -Wextra -Wno-long-long -Wshadow -Wundef -Wconversion
+-      -Wno-sign-conversion -fno-exceptions)
++      -Wno-sign-conversion)
+ 
+     if(NOT ENABLE_RTTI)
+         add_compile_options(-fno-rtti)
+-- 
+2.39.5
+
diff --git a/meta/recipes-graphics/spir/spirv-tools_1.4.357.0.bb b/meta/recipes-graphics/spir/spirv-tools_1.4.363.0.bb
similarity index 91%
rename from meta/recipes-graphics/spir/spirv-tools_1.4.357.0.bb
rename to meta/recipes-graphics/spir/spirv-tools_1.4.363.0.bb
index d9f6d2926788..621b1cbc7f0a 100644
--- a/meta/recipes-graphics/spir/spirv-tools_1.4.357.0.bb
+++ b/meta/recipes-graphics/spir/spirv-tools_1.4.363.0.bb
@@ -7,9 +7,10 @@  SECTION = "graphics"
 LICENSE  = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
-SRCREV = "9a49b0883b9b635689a85b5647dbfcb223268151"
-SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=vulkan-sdk-1.4.357;protocol=https;tag=vulkan-sdk-${PV} \
-"
+SRCREV = "ef96ed763b43b59b33b31b362f09a02b729fa1c9"
+SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=main;protocol=https;tag=vulkan-sdk-${PV} \
+    file://0001-CMakeLists-Do-not-use-fno-exceptions.patch \
+    "
 PE = "1"
 # These recipes need to be updated in lockstep with each other:
 # glslang, vulkan-headers, vulkan-loader, vulkan-tools, spirv-headers, spirv-tools