blender/intern/cycles/kernel/integrator
Sergey Sharybin 9f999adfc6 Fix #137230: Cycles OpenPGL crash with shadow catcher
The crash was caused by an overflow in the opgl_path_segment_storage
array. It happened because shadow catcher paths would write to the
segments but not clear them. This made it so the next render loop
iteration for the main path starts with non-empty segments in the
guiding data.

Disable training when megakernel is called for the shadow catcher
state.

To ensure this issue is not forgotten when the guiding is ported to
GPU add asserts in the `guiding.h`. While it is a no-op for default
GPU kernels sometimes we do compile debug kernels. But also it acts
as a plain-text reminder to the future-us in working on the code.

There is now also an assert before the main path megakernel to help
catching such cases in the future.

Pull Request: https://projects.blender.org/blender/blender/pulls/137291
2025-04-11 12:31:22 +02:00
..
displacement_shader.h Refactor: Cycles: Make kernel headers work by themselves 2025-01-03 10:22:50 +01:00
guiding.h Fix #137230: Cycles OpenPGL crash with shadow catcher 2025-04-11 12:31:22 +02:00
init_from_bake.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
init_from_camera.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
intersect_closest.h Fix #137230: Cycles OpenPGL crash with shadow catcher 2025-04-11 12:31:22 +02:00
intersect_dedicated_light.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
intersect_shadow.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
intersect_subsurface.h License headers: use SPDX-FileCopyrightText in intern/cycles 2023-06-14 16:53:23 +10:00
intersect_volume_stack.h Cleanup: Fix various divisions by zero reported by ASAN 2025-03-06 22:34:23 +01:00
megakernel.h Refactor: Cycles: Automated clang-tidy fixups in Cycles 2025-01-03 10:22:55 +01:00
mnee.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
path_state.h Fix #135145: object visible to volume scatter when ray visibility is off 2025-02-26 15:45:58 +01:00
shade_background.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
shade_dedicated_light.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
shade_light.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
shade_shadow.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
shade_surface.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
shade_volume.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
shadow_catcher.h Refactor: Cycles: Automated clang-tidy fixups in Cycles 2025-01-03 10:22:55 +01:00
shadow_linking.h Refactor: Cycles: Automated clang-tidy fixups in Cycles 2025-01-03 10:22:55 +01:00
shadow_state_template.h Fix #135572: Cycles shadow linking through transparency is broken on GPU 2025-03-07 17:16:04 +01:00
state.h Refactor: Cycles: Automated clang-tidy fixups in Cycles 2025-01-03 10:22:55 +01:00
state_flow.h Refactor: Cycles: Make kernel headers work by themselves 2025-01-03 10:22:50 +01:00
state_template.h Cycles: Implement blue-noise dithered sampling 2024-06-05 02:29:47 +02:00
state_util.h Fix #135572: Cycles shadow linking through transparency is broken on GPU 2025-03-07 17:16:04 +01:00
subsurface.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
subsurface_disk.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
subsurface_random_walk.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
surface_shader.h Refactor: Cycles: Add const keyword to more function parameters 2025-01-03 10:23:24 +01:00
volume_shader.h Cycles: Refactor lights to be objects 2025-02-24 23:44:14 +01:00
volume_stack.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00