Cycles: Drop inline hint on light_tree_pdf

Dropping the inlining hint for `light_tree_pdf` and reverting to the
default inlining thresholds for DPC++ compiler gives a ~4% speedup on
classroom and other scenes on Arc B580.

Pull Request: https://projects.blender.org/blender/blender/pulls/135042
This commit is contained in:
Xavier Hallade
2025-02-24 13:39:12 +01:00
committed by Gitea
parent 973813f8ba
commit a5d8bd2e29
2 changed files with 8 additions and 10 deletions

View File

@@ -942,8 +942,6 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
-fsycl
-fsycl-unnamed-lambda
-fdelayed-template-parsing
-mllvm -inlinedefault-threshold=250
-mllvm -inlinehint-threshold=350
-fsycl-device-code-split=per_kernel
-fsycl-max-parallel-link-jobs=${SYCL_OFFLINE_COMPILER_PARALLEL_JOBS}
--offload-compress

View File

@@ -913,14 +913,14 @@ ccl_device float light_tree_pdf(KernelGlobals kg,
/* If the function is called in volume, retrieve the previous point in volume segment, and compute
* pdf from there. Otherwise compute from the current shading point. */
ccl_device_inline float light_tree_pdf(KernelGlobals kg,
float3 P,
const float3 N,
const float dt,
const int path_flag,
const int emitter_object,
const uint emitter_id,
const int object_receiver)
ccl_device float light_tree_pdf(KernelGlobals kg,
float3 P,
const float3 N,
const float dt,
const int path_flag,
const int emitter_object,
const uint emitter_id,
const int object_receiver)
{
if (path_flag & PATH_RAY_VOLUME_SCATTER) {
const float3 D_times_t = N;