From 8013bad0844ce4aaced7939aa16c593c95db8a4c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 13 Jun 2023 13:01:58 +0200 Subject: [PATCH] Fix Cycles on Metal after the recent changes The address space needs to be specified explicitly. Pull Request: https://projects.blender.org/blender/blender/pulls/108932 --- intern/cycles/kernel/film/light_passes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/kernel/film/light_passes.h b/intern/cycles/kernel/film/light_passes.h index a7864cdbcca..70c5020c70a 100644 --- a/intern/cycles/kernel/film/light_passes.h +++ b/intern/cycles/kernel/film/light_passes.h @@ -20,7 +20,7 @@ CCL_NAMESPACE_BEGIN * them separately. */ ccl_device_inline void bsdf_eval_init(ccl_private BsdfEval *eval, - const ShaderClosure *sc, + ccl_private const ShaderClosure *sc, const float3 wo, Spectrum value) { @@ -51,7 +51,7 @@ ccl_device_inline void bsdf_eval_init(ccl_private BsdfEval *eval, Spectrum value } ccl_device_inline void bsdf_eval_accum(ccl_private BsdfEval *eval, - const ShaderClosure *sc, + ccl_private const ShaderClosure *sc, const float3 wo, Spectrum value) {