Blender Git Loki
Git Commits -> Revision 803337f
Revision 803337f by Sergey Sharybin (master) May 19, 2017, 10:41 (GMT) |
;115;0cCycles: Cleanup, use ccl_restrict instead of ccl_restrict_ptr There were following issues with ccl_restrict_ptr: - We already had ccl_restrict for all platforms. - It was secretly adding `const` qualifier to the declaration, which is quite weird since non-const pointer can also be declared as restricted. - We never in Blender are using foo_ptr or FooPtr type definitions, so not sure why we should introduce such a thing here. - It is absolutely wrong from semantic point of view to put pointer into the restrict macro -- const is a part of type, not part of hint for compiler that some pointer is never aliased. |
Commit Details:
Full Hash: 803337f3f64fed240e9adc6f286d5f9d13a5026a
Parent Commit: 8e65544
Lines Changed: +113, -72
15 Modified Paths:
/intern/cycles/kernel/filter/filter_features.h (+18, -8) (Diff)
/intern/cycles/kernel/filter/filter_features_sse.h (+12, -2) (Diff)
/intern/cycles/kernel/filter/filter_nlm_cpu.h (+33, -7) (Diff)
/intern/cycles/kernel/filter/filter_nlm_gpu.h (+10, -10) (Diff)
/intern/cycles/kernel/filter/filter_prefilter.h (+1, -1) (Diff)
/intern/cycles/kernel/filter/filter_reconstruction.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_transform.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_transform_gpu.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_transform_sse.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cuda/filter.cu (+9, -9) (Diff)
/intern/cycles/kernel/kernels/opencl/filter.cl (+11, -11) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+0, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+0, -1) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+0, -2) (Diff)
/intern/cycles/util/util_math_matrix.h (+11, -11) (Diff)
/intern/cycles/kernel/filter/filter_features_sse.h (+12, -2) (Diff)
/intern/cycles/kernel/filter/filter_nlm_cpu.h (+33, -7) (Diff)
/intern/cycles/kernel/filter/filter_nlm_gpu.h (+10, -10) (Diff)
/intern/cycles/kernel/filter/filter_prefilter.h (+1, -1) (Diff)
/intern/cycles/kernel/filter/filter_reconstruction.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_transform.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_transform_gpu.h (+2, -2) (Diff)
/intern/cycles/kernel/filter/filter_transform_sse.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cuda/filter.cu (+9, -9) (Diff)
/intern/cycles/kernel/kernels/opencl/filter.cl (+11, -11) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+0, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+0, -1) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+0, -2) (Diff)
/intern/cycles/util/util_math_matrix.h (+11, -11) (Diff)