From 7397e6da290ea0bd33e768bd8f314993b3336dd5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 6 Mar 2025 11:58:13 +0100 Subject: [PATCH] Fix: Cycles HIP-RT crash The crash has been introduced by the refactor of lights to be objects in #134846. We can make such cases easier to catch at compile time in the future, but for now applying the minimal patch which solves the problem without going deeper into refactor. Pull Request: https://projects.blender.org/blender/blender/pulls/135570 --- intern/cycles/device/hiprt/device_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intern/cycles/device/hiprt/device_impl.cpp b/intern/cycles/device/hiprt/device_impl.cpp index 990d1218eab..859be314719 100644 --- a/intern/cycles/device/hiprt/device_impl.cpp +++ b/intern/cycles/device/hiprt/device_impl.cpp @@ -766,6 +766,9 @@ void HIPRTDevice::build_blas(BVHHIPRT *bvh, Geometry *geom, hiprtBuildOptions op break; } + case Geometry::LIGHT: + return; + default: assert(geom_input.geomType != hiprtInvalidValue); }