diff options
author | Michael Jones <michael_p_jones@apple.com> | 2022-07-13 22:56:57 +0300 |
---|---|---|
committer | Michael Jones <michael_p_jones@apple.com> | 2022-07-14 16:26:18 +0300 |
commit | 4b1d315017ef103f3034160d349b3c3c21a4cd6a (patch) | |
tree | 779dd8c27d37e710d3014911e962027b56049084 /.clang-format | |
parent | 47d4ce498e3f5a11a0210b1efd57053f0b1c85bd (diff) |
Cycles: Improve cache usage on Apple GPUs by chunking active indices
This patch partitions the active indices into chunks prior to sorting by material in order to tradeoff some material coherence for better locality. On Apple Silicon GPUs (particularly higher end M1-family GPUs), we observe overall render time speedups of up to 15%. The partitioning is implemented by repeating the range of `shader_sort_key` for each partition, and encoding a "locator" key which distributes the indices into sorted chunks.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D15331
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions