blender/intern
salipour 2f0fa0b262 Fix #154921: Blender 4.2 Cycles HIP crash with AMD Adrenaline 26.2.2
Blender 4.2 is compiled with HIP SDK 5.7. Some functions and struct
layouts differ between HIP 5 and HIP 6, including the hipDeviceProp_t
struct. If Blender 4.2 runs against a HIP 6 runtime, the driver returns
device property data using the HIP 6 structure layout, while Blender
interprets it using the HIP 5 layout.

Due to this mismatch, fields are read from incorrect memory locations.
In particular, hipDeviceArch_t is read from the address where Blender
expects it to be according to the HIP 5 layout, but which corresponds
to different data in the HIP 6 structure. This results in invalid
memory interpretation and leads to a crash in hipGetDeviceProperties.

The HIP 5 runtime is no longer shipped with the driver. After major
ROCm releases, AMD does not guarantee backward compatibility, although
we typically try to provide a transition buffer between versions.
Driver version 26.2.1 appears to be the point where the HIP 5 structure
layout is no longer compatible with the HIP 6 runtime.

This pull request adds a runtime check before using HIP functionality.
If the detected HIP runtime version is 6.5.51 or higher, the HIP option
is disabled to prevent the crash and other undefined behavior.

Pull Request: https://projects.blender.org/blender/blender/pulls/155544
2026-03-16 16:00:59 +01:00
..
atomic Cleanup: move CMake test utility functions into testing.cmake 2024-01-03 14:49:11 +01:00
audaspace Cleanup: use braces for sources in intern/ 2023-09-17 09:05:40 +10:00
clog Cleanup: match function/declaration names 2024-04-17 11:36:36 +10:00
cycles Fix #154921: Blender 4.2 Cycles HIP crash with AMD Adrenaline 26.2.2 2026-03-16 16:00:59 +01:00
dualcon Mesh: Rename MLoopTri variable names, and functions 2023-12-19 14:57:49 +01:00
eigen Cleanup: remove redundant define checks 2023-12-07 10:39:03 +11:00
ffmpeg Fix #125446: Video decoding artifacts with some video widths 2024-10-11 14:19:28 +03:00
ghost Fix out-of-bounds write with Wayland compose-key event handling 2025-06-12 13:36:27 +02:00
guardedalloc Fix (unreported) 'copy' version of MEM_cnew not handling alignment. 2024-06-20 11:00:34 +02:00
iksolver Clang Format: bump to version 17 2024-01-03 13:38:14 +01:00
itasc Fix #120763: Fix memory leak in itasc cache 2024-04-24 09:35:04 +02:00
libc_compat Build: fix linking FFMPEG & x265 on Linux 2024-06-15 14:15:53 +10:00
libmv UI: fix and improve a few messages 2024-02-05 17:08:17 +01:00
locale License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
mantaflow Cleanup: remove redundant variables & assignments 2024-04-09 13:52:41 +10:00
memutil Cleanup: use braces in headers 2023-09-24 14:52:38 +10:00
mikktspace Cleanup: Mikktspace: use sqrtf() function with float type 2024-06-04 14:27:17 +02:00
opencolorio Fix #121819: OpenColorIO GLSL error after recent change, only apply to Metal 2024-06-12 18:29:49 +02:00
opensubdiv Build: Add Epoxy to OpenSubdiv library build dependencies 2024-11-13 18:09:56 +01:00
openvdb Cleanup: spelling in code comments & minor edits 2024-06-06 09:55:13 +10:00
quadriflow Cleanup: Replace MVertTri type with C++ vector 2023-12-20 20:59:11 -05:00
renderdoc_dynload RenderDoc: Set Capture Title 2024-02-23 10:57:37 +01:00
rigidbody Cleanup: use const pointers 2024-04-20 12:41:23 +10:00
sky Cleanup: use C-style comments for descriptive text 2024-04-11 17:44:27 +10:00
utfconv CMake: Fix Compiling Shader Builder on macOS 2023-12-08 15:47:14 +01:00
wayland_dynload GHOST/Wayland: expose wl_display_get_protocol_error function 2024-05-03 10:55:17 +10:00
CMakeLists.txt CMake: Fix Compiling Shader Builder on macOS 2023-12-08 15:47:14 +01:00