From ebeb6fabe9d184a27fc141775a0e1979db557f9d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 13 Jul 2023 19:39:38 +0200 Subject: [PATCH] Fix #109418: Cycles HIP RT kernel not rebuilding on changes Changes to the kernel source would not update the HIP RT binaries, leading to render errors due to the kernel being mismatched with Blender. The code this was copied from was inside a macro that defines the sources variable, but it's not defined here. --- intern/cycles/kernel/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt index b3c49c5cf53..c2a7781c46f 100644 --- a/intern/cycles/kernel/CMakeLists.txt +++ b/intern/cycles/kernel/CMakeLists.txt @@ -666,7 +666,7 @@ if(WITH_CYCLES_DEVICE_HIPRT AND WITH_CYCLES_HIP_BINARIES) ${SRC_UTIL_HEADERS}) set(bitcode_file ${CMAKE_CURRENT_BINARY_DIR}/kernel_rt_gfx.bc) set(hiprt_file ${CMAKE_CURRENT_BINARY_DIR}/kernel_rt_gfx.hipfb) - set(kernel_sources ${sources}) + set(kernel_sources ${hiprt_sources}) set(hiprt_kernel_src "/device/hiprt/kernel.cpp") if(WIN32) set(hiprt_compile_command ${CMAKE_COMMAND}) -- 2.30.2