blender/intern/cycles/kernel/light
Sergey Sharybin dd65e9901f Fix Light Tree option causing wrong renders on macOS AMD
The light tree itself is disabled on the AMD GPUs due to a compiler issue.

There are couple of places where this was not fully checked:

- The `light_sample` function in the kernel.
- The light threshold during synchronization

The former one is solved as easy as just adding an ifdef block.
The latter one is solved by delaying the threshold assignment for
later on.

Pull Request #105022
2023-02-21 16:50:06 +01:00
..
area.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00
background.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
common.h Cycles: using concentric mapping when sampling disk 2022-12-12 17:15:55 +01:00
distant.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
distribution.h Cycles: switch from pretabulated 2D PMJ02 to pretabulated 4D Sobol 2022-12-14 17:39:13 +01:00
light.h Fix Light Tree option causing wrong renders on macOS AMD 2023-02-21 16:50:06 +01:00
point.h Cycles: improve many lights sampling using light tree 2022-12-05 16:09:03 +01:00
sample.h Cleanup: Remove unused light_sample_is_light() function. 2023-01-20 17:36:48 +01:00
spot.h Cycles: add non-uniform scaling to spot light size 2023-02-03 18:51:14 +01:00
tree.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00
triangle.h Cycles: Cleanup: Add general-purpose conversion between sin and cos 2023-01-24 17:59:29 +01:00