blender/intern/cycles/kernel/device/metal
Sergey Sharybin 15fd8ad7a1 Fix: Cycles linear curves on Metal-RT
Metal-RT implementation for curve intersect has an additional self
intersection check happening in curve_ribbon_accept(). It is done
for all curve types that has PRIMITIVE_CURVE_RIBBON bit set on them,
including Thick Linear curves. However, the logic in the function is
hardcoded to handle flat ribbon curves with the Catmull Rom basis.

This change makes it so curve_ribbon_accept() is only called for the
ribbon curve type, not when type has ribbon bit set.

Additionally, other places where curve type was checked as a bitmask
were fixed.

Ref #146072

Pull Request: https://projects.blender.org/blender/blender/pulls/146140
2025-09-12 14:16:09 +02:00
..
bvh.h Fix: Cycles linear curves on Metal-RT 2025-09-12 14:16:09 +02:00
compat.h Refactor: Cycles: Simplify Metal backend with direct bindless resource encoding 2025-08-27 13:58:30 +02:00
context_begin.h Refactor: Cycles: Simplify Metal backend with direct bindless resource encoding 2025-08-27 13:58:30 +02:00
context_end.h
function_constants.h Cycles: Improve Metal kernel specialisation 2025-07-18 11:18:43 +02:00
globals.h Refactor: Cycles: Add const keyword where possible, using clang-tidy 2025-01-03 10:23:20 +01:00
kernel.metal Fix: Cycles linear curves on Metal-RT 2025-09-12 14:16:09 +02:00