Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/optix/queue.cpp
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | bool OptiXDeviceQueue::enqueue(DeviceKernel kernel, const int work_size, void *args[]) | ||||
| cuda_device_assert( | cuda_device_assert( | ||||
| cuda_device_, | cuda_device_, | ||||
| cuMemcpyHtoDAsync(launch_params_ptr + offsetof(KernelParamsOptiX, path_index_array), | cuMemcpyHtoDAsync(launch_params_ptr + offsetof(KernelParamsOptiX, path_index_array), | ||||
| args[0], // &d_path_index | args[0], // &d_path_index | ||||
| sizeof(device_ptr), | sizeof(device_ptr), | ||||
| cuda_stream_)); | cuda_stream_)); | ||||
| if (kernel == DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE_RAYTRACE) { | if (kernel == DEVICE_KERNEL_INTEGRATOR_INTERSECT_CLOSEST || | ||||
| kernel == DEVICE_KERNEL_INTEGRATOR_SHADE_SURFACE_RAYTRACE) { | |||||
| cuda_device_assert( | cuda_device_assert( | ||||
| cuda_device_, | cuda_device_, | ||||
| cuMemcpyHtoDAsync(launch_params_ptr + offsetof(KernelParamsOptiX, render_buffer), | cuMemcpyHtoDAsync(launch_params_ptr + offsetof(KernelParamsOptiX, render_buffer), | ||||
| args[1], // &d_render_buffer | args[1], // &d_render_buffer | ||||
| sizeof(device_ptr), | sizeof(device_ptr), | ||||
| cuda_stream_)); | cuda_stream_)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||