blender/intern/cycles/device/hip
Sergey Sharybin a70b34065d Refactor: Cycles: Make kernel_features 64bit
This change adds 32 more bit to store kernel features.

While for a short term it might be possible to make a space for one or
two extra bits, it seems going 64bit is inevitable.

Expanding the field to 64bit might introduce some slowdown due to less
optimal cache, but so is consolidation of existing flags could also
lead to performance drop in certain configurations.

The main tricky part of the change is Metal where function constants
are used to store kernel_features, and 64bit constants are only
available on macOS 12. There is a runtime check for it. On older macOS
versions the flags are stored as a pair of 32bit values. It is slower,
but there are unlikely to be many Cycles users on macOS 11.

Ref #159470

Pull Request: https://projects.blender.org/blender/blender/pulls/162737
2026-08-18 10:41:27 +02:00
..
device.cpp Cycles: Show devices with outdated drivers as disabled in preferences 2026-06-25 10:51:09 +02:00
device.h Cycles: Show devices with outdated drivers as disabled in preferences 2026-06-25 10:51:09 +02:00
device_impl.cpp Refactor: Cycles: Make kernel_features 64bit 2026-08-18 10:41:27 +02:00
device_impl.h Refactor: Cycles: Make kernel_features 64bit 2026-08-18 10:41:27 +02:00
graphics_interop.cpp Fix: Cycles log levels conflict with macros on some platforms 2025-07-10 19:44:14 +02:00
graphics_interop.h Fix: Properly free Vulkan interop handle for Cycles 2025-05-26 10:59:49 +02:00
kernel.cpp Refactor: Cycles: Move MNEE walk into separate kernel 2026-05-27 20:34:06 +02:00
kernel.h Refactor: Cycles, remove non-raytacing kernels from HIP-RT 2025-12-29 12:16:01 +01:00
queue.cpp Refactor: Cycles: Support allocating GPU device_image during render 2026-03-27 16:07:06 +01:00
queue.h Refactor: Cycles: Support allocating GPU device_image during render 2026-03-27 16:07:06 +01:00
util.cpp Cleanup: spelling in comments (make check_spelling_*) 2026-05-20 11:33:08 +10:00
util.h Refactor: Cycles: Move MNEE walk into separate kernel 2026-05-27 20:34:06 +02:00