public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/blender] rawhide: Update Blender to 5.2.3 and enable HIPRT and meshoptimizer
@ 2026-10-24 23:07 Luya Tshimbalanga
0 siblings, 0 replies; only message in thread
From: Luya Tshimbalanga @ 2026-10-24 23:07 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/blender
Branch : rawhide
Commit : 3fe537493cd14edc16f69a883844f221131c6fe4
Author : Luya Tshimbalanga <luya@fedoraproject.org>
Date : 2026-10-24T16:04:05-07:00
Stats : +64/-4 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/blender/c/3fe537493cd14edc16f69a883844f221131c6fe4?branch=rawhide
Log:
Update Blender to 5.2.3 and enable HIPRT and meshoptimizer
Adapt Cycles logging for HIPRT 3 while retaining HIPRT 2 compatibility.
Require the unversioned HIP library used by runtime detection and reject
HIPRT builds without HIP.
Temporarily disable Vulkan shader optimization to work around the
SPIRV-Tools startup crash (rhbz#2560332).
Resolves: rhbz##2558785
---
diff --git a/blender-hiprt-log-level-upstream.patch b/blender-hiprt-log-level-upstream.patch
new file mode 100644
index 0000000..efea418
--- /dev/null
+++ b/blender-hiprt-log-level-upstream.patch
@@ -0,0 +1,39 @@
+Subject: [PATCH] Fix: Cycles build with HIPRT 3 logging API
+
+HIPRT 3.0 changed hiprtSetLogLevel from a global logging setting to a
+per-context setting. Calling the old one-argument API fails to compile
+against HIPRT 3 headers.
+
+Pass the existing HIPRT context for HIPRT 3 and newer, while retaining
+the one-argument call for HIPRT 2.x used by Blender's dependency bundle.
+Compute the log level once to keep the existing trace logging behavior
+identical in both cases. The context has already been created and checked
+successfully at this point.
+
+This addresses the logging API mismatch only; it does not claim complete
+HIPRT 3 compatibility or update Blender's bundled HIPRT version.
+
+---
+--- a/intern/cycles/device/hiprt/device_impl.cpp
++++ b/intern/cycles/device/hiprt/device_impl.cpp
+@@ -144,12 +144,14 @@
+ return;
+ }
+
+- if (LOG_IS_ON(LOG_LEVEL_TRACE)) {
+- hiprtSetLogLevel(hiprtLogLevelInfo | hiprtLogLevelWarn | hiprtLogLevelError);
+- }
+- else {
+- hiprtSetLogLevel(hiprtLogLevelNone);
+- }
++ const hiprtLogLevel log_level = LOG_IS_ON(LOG_LEVEL_TRACE) ?
++ hiprtLogLevelInfo | hiprtLogLevelWarn | hiprtLogLevelError :
++ hiprtLogLevelNone;
++# if HIPRT_MAJOR_VERSION >= 3
++ hiprtSetLogLevel(hiprt_context, log_level);
++# else
++ hiprtSetLogLevel(log_level);
++# endif
+ }
+
+ HIPRTDevice::~HIPRTDevice()
diff --git a/blender-vulkan-disable-shaderc-optimization.patch b/blender-vulkan-disable-shaderc-optimization.patch
new file mode 100644
index 0000000..503b45c
--- /dev/null
+++ b/blender-vulkan-disable-shaderc-optimization.patch
@@ -0,0 +1,7 @@
+--- a/source/blender/gpu/vulkan/vk_shader_compiler.cc
++++ b/source/blender/gpu/vulkan/vk_shader_compiler.cc
+@@ -207,3 +207,3 @@
+ shaderc::CompileOptions options;
+- bool do_optimize = true;
++ bool do_optimize = false;
+ options.SetTargetEnvironment(shaderc_target_env_vulkan, shaderc_env_version_vulkan_1_2);
diff --git a/blender.spec b/blender.spec
index 82d3e12..1b73219 100644
--- a/blender.spec
+++ b/blender.spec
@@ -15,7 +15,7 @@
%bcond manifold 1 # Manifold support
%bcond manpage 1 # Generate manpage
%bcond materialx 1 # MaterialX support
-%bcond meshoptimizer 0 # Meshoptimizer support (enable when available in the buildroot)
+%bcond meshoptimizer 1 # Meshoptimizer support
%bcond nanovdb 1 # NanoVDB support
%bcond openvdb 1 # OpenVDB support
%bcond vulkan 1 # Vulkan rendering support
@@ -46,7 +46,7 @@
# GPU kernel generation and OSL/path-guiding support are currently x86_64-only.
%ifarch x86_64
%bcond hip 1
-%bcond hiprt 0
+%bcond hiprt 1
%bcond oidn 1
# Blender requires a SYCL compiler in addition to Level Zero. The Fedora
# buildroot currently lacks the required SYCL toolchain.
@@ -63,9 +63,13 @@
%bcond opgl 0
%endif
+%if %{with hiprt} && %{without hip}
+%{error:HIPRT requires HIP; use --without hiprt together with --without hip}
+%endif
+
Name: blender
Epoch: 1
-Version: 5.2.2
+Version: 5.2.3
Release: %autorelease
Summary: 3D modeling, animation, rendering and post-production
@@ -91,6 +95,12 @@ Source1: %{name}-macros-source
# Backport support for FFmpeg 9
Patch0: https://github.com/blender/blender/commit/e3c92c22817dc0310a460c22f6b1e8e397517e3b.patch#/blender-ffmpeg9.patch
+# Adapt Cycles logging to the system HIPRT API
+Patch1: blender-hiprt-log-level-upstream.patch
+
+# Temporary workaround for the SPIRV-Tools shader optimization crash.
+Patch2: blender-vulkan-disable-shaderc-optimization.patch
+
# versions.cmake pins the libraries used for Blender's official precompiled
# dependency bundle. Those pins are tested versions, not general minimums for
# system libraries. Version constraints below are limited to requirements that
@@ -377,6 +387,10 @@ BuildRequires: pkgconfig(vpl)
%endif
Requires: hicolor-icon-theme
+%if %{with hip} && %{with hiprt}
+# Cycles' Linux HIPRT availability check loads libamdhip64.so.
+Requires: rocm-hip-devel%{?_isa}
+%endif
Requires: rsms-inter-fonts
Requires: shared-mime-info
Provides: blender(ABI) = %{blender_api}
diff --git a/sources b/sources
index 11e56b0..63063f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (blender-5.2.2.tar.xz) = 54ce15eadcd6e3b3b60c5deda046ade2f8c519167127b41cad541d762e0aa85350f2589af5f0c86003a05613720fab7148c8448b8057a1ad6daed9a00c7c45f2
+SHA512 (blender-5.2.3.tar.xz) = 68d6972e8e628d517d65cbcec723486ad0ff188c1d4ef3cd2acbbdf2b37f5944f9c28032d168ba1efeb51ea706f49b8ef36db6dd1c5d35df7ff057cc841ccee5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-24 23:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-24 23:07 [rpms/blender] rawhide: Update Blender to 5.2.3 and enable HIPRT and meshoptimizer Luya Tshimbalanga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox