mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Local partitioned shader sorting has been used with Metal and oneAPI for a while now. Turns out CUDA/OptiX also benefit, so this change enables it there too. Note that there is no need to operate on shared memory with atomics in CUDA, so the implementation of atomic_store_local/atomic_load_local is kept extremely simple. Pull Request: https://projects.blender.org/blender/blender/pulls/163436
11 lines
300 B
C
11 lines
300 B
C
/* SPDX-FileCopyrightText: 2021-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
}
|
|
; /* end of ONEAPIKernelContext class definition */
|
|
|
|
#undef kernel_data
|
|
#define kernel_data (*(kg->__data))
|
|
|
|
#undef kernel_integrator_state
|
|
#define kernel_integrator_state (*(kg->integrator_state))
|