mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
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 |
||
|---|---|---|
| .. | ||
| atomic | ||
| audaspace | ||
| clog | ||
| cycles | ||
| dualcon | ||
| eigen | ||
| ffmpeg | ||
| ghost | ||
| guardedalloc | ||
| iksolver | ||
| itasc | ||
| libc_compat | ||
| libmv | ||
| locale | ||
| mantaflow | ||
| memutil | ||
| mikktspace | ||
| opencolorio | ||
| opensubdiv | ||
| openvdb | ||
| quadriflow | ||
| renderdoc_dynload | ||
| rigidbody | ||
| sky | ||
| utfconv | ||
| wayland_dynload | ||
| CMakeLists.txt | ||