[Bf-blender-cvs] [be18e4b] cycles_kernel_split: Cyclse kernel split : Use macros to set args for DirectLighting kernel
varunsundar08
noreply at git.blender.org
Wed May 6 13:07:13 CEST 2015
Commit: be18e4b16c8d1426cd082425d611858161ff5a24
Author: varunsundar08
Date: Wed May 6 14:59:20 2015 +0530
Branches: cycles_kernel_split
https://developer.blender.org/rBbe18e4b16c8d1426cd082425d611858161ff5a24
Cyclse kernel split : Use macros to set args for DirectLighting kernel
===================================================================
M intern/cycles/device/device_opencl.cpp
===================================================================
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index df3efa9..fa3299e 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -2767,20 +2767,19 @@ public:
/* Set up arguments for ckPathTraceKernel_DirectLighting_SPLIT_KERNEL kernel */
narg = 0;
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(kgbuffer), (void*)&kgbuffer));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(d_data), (void*)&d_data));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(sd), (void*)&sd));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(sd_DL_shadow), (void*)&sd_DL_shadow));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(rng_coop), (void*)&rng_coop));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(PathState_coop), (void*)&PathState_coop));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(ISLamp_coop), (void*)&ISLamp_coop));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(LightRay_coop), (void*)&LightRay_coop));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(BSDFEval_coop), (void*)&BSDFEval_coop));
-
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(ray_state), (void*)&ray_state));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(Queue_data), (void*)&Queue_data));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(Queue_index), (void*)&Queue_index));
- opencl_assert(clSetKernelArg(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, narg++, sizeof(dQueue_size), (void*)&dQueue_size));
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, kgbuffer);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, d_data);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, sd);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, sd_DL_shadow);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, rng_coop);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, PathState_coop);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, ISLamp_coop);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, LightRay_coop);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, BSDFEval_coop);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, ray_state);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, Queue_data);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, Queue_index);
+ KERNEL_APPEND_ARG(ckPathTraceKernel_DirectLighting_SPLIT_KERNEL, dQueue_size);
/* Set up arguments for ckPathTraceKernel_ShadowBlocked_DirectLighting_SPLIT_KERNEL kernel */
narg = 0;
More information about the Bf-blender-cvs
mailing list