git: 36c50e5bf7cc - main - graphics/spirv-tools: Update to 2026.4.rc2

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Mon, 05 Oct 2026 12:14:10 UTC
The branch main has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=36c50e5bf7cc90e955f54e394c2b8d5bb824d922

commit 36c50e5bf7cc90e955f54e394c2b8d5bb824d922
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2026-10-05 12:11:48 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2026-10-05 12:14:01 +0000

    graphics/spirv-tools: Update to 2026.4.rc2
    
    This update is needed for the latest version of Vulkan suite.
    
    Changelog: https://github.com/KhronosGroup/SPIRV-Tools/blob/v2026.4.rc2/CHANGES
    
    Reported by:    olivier (via private email)
---
 graphics/spirv-tools/Makefile                      |  4 ++--
 graphics/spirv-tools/distinfo                      | 10 +++++-----
 graphics/spirv-tools/files/patch-source_binary.cpp |  8 ++++----
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/graphics/spirv-tools/Makefile b/graphics/spirv-tools/Makefile
index 1c9dcb4145a9..f61a0d304e72 100644
--- a/graphics/spirv-tools/Makefile
+++ b/graphics/spirv-tools/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	spirv-tools
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2026.3 # please always bump all dependencies when updated because at least graphics/shaderc links in static libraries
+DISTVERSION=	2026.4.rc2 # please always bump all dependencies when updated because at least graphics/shaderc links in static libraries
 CATEGORIES=	graphics
 
 MAINTAINER=	tagattie@FreeBSD.org
@@ -18,7 +18,7 @@ GH_PROJECT=	SPIRV-Tools
 # for GH_TAGNAME in GH_TUPLE
 # git clone --filter=blob:none --no-checkout --quiet https://github.com/KhronosGroup/SPIRV-Headers.git && git -C SPIRV-Headers describe <COMMIT_HASH>
 # for COMMIT_HASH see ${WRKSRC}/DEPS
-GH_TUPLE=	KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-498-g29981f6:headers/external/spirv-headers
+GH_TUPLE=	KhronosGroup:SPIRV-Headers:v2026.08.0-2-g4965431:headers/external/spirv-headers
 
 USE_LDCONFIG=	yes
 
diff --git a/graphics/spirv-tools/distinfo b/graphics/spirv-tools/distinfo
index afffd3b23962..eacbaa6661b2 100644
--- a/graphics/spirv-tools/distinfo
+++ b/graphics/spirv-tools/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1786586336
-SHA256 (KhronosGroup-SPIRV-Tools-v2026.3_GH0.tar.gz) = fff0667b25dfb98177da3cc4cc61ac277d076786df42baaf8d9635a25bdf9226
-SIZE (KhronosGroup-SPIRV-Tools-v2026.3_GH0.tar.gz) = 3516190
-SHA256 (KhronosGroup-SPIRV-Headers-1.5.4.raytracing.fixed-498-g29981f6_GH0.tar.gz) = 511bf6d76924d56540ac82dc681e19b16e252924ac6225c80c178ce5b5c07f8f
-SIZE (KhronosGroup-SPIRV-Headers-1.5.4.raytracing.fixed-498-g29981f6_GH0.tar.gz) = 572035
+TIMESTAMP = 1791197343
+SHA256 (KhronosGroup-SPIRV-Tools-v2026.4.rc2_GH0.tar.gz) = d0e4b27d5694ecf5c737be88fea4afb09049686626f112d536f5d9504d5cd7d1
+SIZE (KhronosGroup-SPIRV-Tools-v2026.4.rc2_GH0.tar.gz) = 3554817
+SHA256 (KhronosGroup-SPIRV-Headers-v2026.08.0-2-g4965431_GH0.tar.gz) = 37b187680b7744763dae21a34417f263a8d6b7c6a1f34652d5d346e89a4f8736
+SIZE (KhronosGroup-SPIRV-Headers-v2026.08.0-2-g4965431_GH0.tar.gz) = 594088
diff --git a/graphics/spirv-tools/files/patch-source_binary.cpp b/graphics/spirv-tools/files/patch-source_binary.cpp
index 3c52f8fb80e1..c03515d8f83f 100644
--- a/graphics/spirv-tools/files/patch-source_binary.cpp
+++ b/graphics/spirv-tools/files/patch-source_binary.cpp
@@ -1,4 +1,4 @@
---- source/binary.cpp.orig	2026-07-08 19:46:47 UTC
+--- source/binary.cpp.orig	2026-09-10 13:28:18 UTC
 +++ source/binary.cpp
 @@ -181,7 +181,7 @@ class Parser {
    // Returns the endian-corrected word at the given position.
@@ -27,7 +27,7 @@
  
    // Process the header.
    spv_header_t header;
-@@ -495,10 +499,6 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
+@@ -496,10 +500,6 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
  
    const uint32_t word = peek();
  
@@ -38,7 +38,7 @@
    switch (type) {
      case SPV_OPERAND_TYPE_TYPE_ID:
        if (!word)
-@@ -664,7 +664,7 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
+@@ -665,7 +665,7 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
      case SPV_OPERAND_TYPE_OPTIONAL_LITERAL_STRING: {
        const size_t max_words = _.num_words - _.word_index;
        std::string string =
@@ -47,7 +47,7 @@
  
        if (string.length() == max_words * 4)
          return exhaustedInputDiagnostic(inst_offset, opcode, type);
-@@ -870,17 +870,8 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
+@@ -871,17 +871,8 @@ spv_result_t Parser::parseOperand(size_t inst_offset,
  
    if (_.requires_endian_conversion) {
      // Copy instruction words.  Translate to native endianness as needed.