Blender Git Loki
Git Commits -> Revision 960353a
Revision 960353a by Brecht Van Lommel (cycles-x) February 18, 2021, 16:57 (GMT) |
Cleanup: mark KernelGlobals const in kernel, and use ccl_restrict in new code Not sure if restrict will help performance in practice, but might as well start marking this kind of stuff as we bring back kernel functionality. |
Commit Details:
Full Hash: 960353a9f7f87e322313b283e1685932ffd865cf
Parent Commit: 861d48e
Lines Changed: +709, -526
115 Modified Paths:
/intern/cycles/bvh/bvh_embree.cpp (+1, -1) (Diff)
/intern/cycles/device/device_cpu.cpp (+6, -5) (Diff)
/intern/cycles/kernel/bvh/bvh.h (+5, -5) (Diff)
/intern/cycles/kernel/bvh/bvh_embree.h (+4, -4) (Diff)
/intern/cycles/kernel/bvh/bvh_local.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_nodes.h (+5, -5) (Diff)
/intern/cycles/kernel/bvh/bvh_shadow_all.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_traversal.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_volume.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_volume_all.h (+2, -2) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+3, -3) (Diff)
/intern/cycles/kernel/closure/bsdf_hair_principled.h (+4, -4) (Diff)
/intern/cycles/kernel/closure/bsdf_microfacet.h (+4, -4) (Diff)
/intern/cycles/kernel/closure/bsdf_microfacet_multi.h (+2, -2) (Diff)
/intern/cycles/kernel/geom/geom_attribute.h (+5, -5) (Diff)
/intern/cycles/kernel/geom/geom_curve.h (+11, -8) (Diff)
/intern/cycles/kernel/geom/geom_curve_intersect.h (+2, -2) (Diff)
/intern/cycles/kernel/geom/geom_motion_curve.h (+5, -5) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle.h (+5, -5) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle_intersect.h (+8, -5) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle_shader.h (+5, -2) (Diff)
/intern/cycles/kernel/geom/geom_object.h (+59, -45) (Diff)
/intern/cycles/kernel/geom/geom_patch.h (+9, -9) (Diff)
/intern/cycles/kernel/geom/geom_primitive.h (+15, -12) (Diff)
/intern/cycles/kernel/geom/geom_subd_triangle.h (+16, -11) (Diff)
/intern/cycles/kernel/geom/geom_triangle.h (+20, -11) (Diff)
/intern/cycles/kernel/geom/geom_triangle_intersect.h (+4, -4) (Diff)
/intern/cycles/kernel/geom/geom_volume.h (+2, -2) (Diff)
/intern/cycles/kernel/integrator/integrator_state.h (+4, -2) (Diff)
/intern/cycles/kernel/integrator/kernel_background.h (+2, -1) (Diff)
/intern/cycles/kernel/integrator/kernel_shadow.h (+2, -1) (Diff)
/intern/cycles/kernel/integrator/kernel_surface.h (+2, -1) (Diff)
/intern/cycles/kernel/integrator/kernel_volume.h (+2, -1) (Diff)
/intern/cycles/kernel/kernel.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu.h (+5, -5) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h (+5, -5) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_cuda_image.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_opencl_image.h (+6, -6) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_split_function.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+12, -12) (Diff)
/intern/cycles/kernel/kernel_adaptive_sampling.h (+8, -4) (Diff)
/intern/cycles/kernel/kernel_bake.h (+17, -8) (Diff)
/intern/cycles/kernel/kernel_camera.h (+8, -8) (Diff)
/intern/cycles/kernel/kernel_color.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_emission.h (+5, -5) (Diff)
/intern/cycles/kernel/kernel_film.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_globals.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_id_passes.h (+7, -2) (Diff)
/intern/cycles/kernel/kernel_jitter.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_light.h (+12, -10) (Diff)
/intern/cycles/kernel/kernel_light_background.h (+13, -10) (Diff)
/intern/cycles/kernel/kernel_light_common.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_passes.h (+6, -6) (Diff)
/intern/cycles/kernel/kernel_path.h (+15, -10) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+12, -7) (Diff)
/intern/cycles/kernel/kernel_path_common.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+8, -6) (Diff)
/intern/cycles/kernel/kernel_path_subsurface.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_path_volume.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_profiling.h (+2, -1) (Diff)
/intern/cycles/kernel/kernel_queues.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_random.h (+15, -12) (Diff)
/intern/cycles/kernel/kernel_shader.h (+40, -32) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+8, -8) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+16, -9) (Diff)
/intern/cycles/kernel/kernel_types.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_volume.h (+21, -21) (Diff)
/intern/cycles/kernel/kernel_work_stealing.h (+2, -2) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+1, -1) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+29, -21) (Diff)
/intern/cycles/kernel/osl/osl_services.h (+12, -4) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+15, -6) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+14, -5) (Diff)
/intern/cycles/kernel/svm/svm.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_ao.h (+6, -3) (Diff)
/intern/cycles/kernel/svm/svm_aov.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_attribute.h (+14, -5) (Diff)
/intern/cycles/kernel/svm/svm_bevel.h (+6, -3) (Diff)
/intern/cycles/kernel/svm/svm_blackbody.h (+5, -2) (Diff)
/intern/cycles/kernel/svm/svm_brick.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_bump.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_camera.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_checker.h (+4, -1) (Diff)
/intern/cycles/kernel/svm/svm_clamp.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_convert.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_displace.h (+10, -4) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+6, -6) (Diff)
/intern/cycles/kernel/svm/svm_hsv.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_ies.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_image.h (+7, -4) (Diff)
/intern/cycles/kernel/svm/svm_magic.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_mapping.h (+13, -5) (Diff)
/intern/cycles/kernel/svm/svm_map_range.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_math.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_mix.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_musgrave.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_noisetex.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_normal.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_ramp.h (+8, -4) (Diff)
/intern/cycles/kernel/svm/svm_sepcomb_hsv.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_sky.h (+4, -4) (Diff)
/intern/cycles/kernel/svm/svm_tex_coord.h (+8, -5) (Diff)
/intern/cycles/kernel/svm/svm_value.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_vector_transform.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_vertex_color.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_voronoi.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_voxel.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wave.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wavelength.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_white_noise.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wireframe.h (+5, -2) (Diff)
/intern/cycles/device/device_cpu.cpp (+6, -5) (Diff)
/intern/cycles/kernel/bvh/bvh.h (+5, -5) (Diff)
/intern/cycles/kernel/bvh/bvh_embree.h (+4, -4) (Diff)
/intern/cycles/kernel/bvh/bvh_local.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_nodes.h (+5, -5) (Diff)
/intern/cycles/kernel/bvh/bvh_shadow_all.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_traversal.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_volume.h (+2, -2) (Diff)
/intern/cycles/kernel/bvh/bvh_volume_all.h (+2, -2) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+3, -3) (Diff)
/intern/cycles/kernel/closure/bsdf_hair_principled.h (+4, -4) (Diff)
/intern/cycles/kernel/closure/bsdf_microfacet.h (+4, -4) (Diff)
/intern/cycles/kernel/closure/bsdf_microfacet_multi.h (+2, -2) (Diff)
/intern/cycles/kernel/geom/geom_attribute.h (+5, -5) (Diff)
/intern/cycles/kernel/geom/geom_curve.h (+11, -8) (Diff)
/intern/cycles/kernel/geom/geom_curve_intersect.h (+2, -2) (Diff)
/intern/cycles/kernel/geom/geom_motion_curve.h (+5, -5) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle.h (+5, -5) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle_intersect.h (+8, -5) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle_shader.h (+5, -2) (Diff)
/intern/cycles/kernel/geom/geom_object.h (+59, -45) (Diff)
/intern/cycles/kernel/geom/geom_patch.h (+9, -9) (Diff)
/intern/cycles/kernel/geom/geom_primitive.h (+15, -12) (Diff)
/intern/cycles/kernel/geom/geom_subd_triangle.h (+16, -11) (Diff)
/intern/cycles/kernel/geom/geom_triangle.h (+20, -11) (Diff)
/intern/cycles/kernel/geom/geom_triangle_intersect.h (+4, -4) (Diff)
/intern/cycles/kernel/geom/geom_volume.h (+2, -2) (Diff)
/intern/cycles/kernel/integrator/integrator_state.h (+4, -2) (Diff)
/intern/cycles/kernel/integrator/kernel_background.h (+2, -1) (Diff)
/intern/cycles/kernel/integrator/kernel_shadow.h (+2, -1) (Diff)
/intern/cycles/kernel/integrator/kernel_surface.h (+2, -1) (Diff)
/intern/cycles/kernel/integrator/kernel_volume.h (+2, -1) (Diff)
/intern/cycles/kernel/kernel.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu.h (+5, -5) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h (+5, -5) (Diff)
/intern/cycles/kernel/kernels/cuda/kernel_cuda_image.h (+2, -2) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_opencl_image.h (+6, -6) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_split_function.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+12, -12) (Diff)
/intern/cycles/kernel/kernel_adaptive_sampling.h (+8, -4) (Diff)
/intern/cycles/kernel/kernel_bake.h (+17, -8) (Diff)
/intern/cycles/kernel/kernel_camera.h (+8, -8) (Diff)
/intern/cycles/kernel/kernel_color.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_emission.h (+5, -5) (Diff)
/intern/cycles/kernel/kernel_film.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_globals.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_id_passes.h (+7, -2) (Diff)
/intern/cycles/kernel/kernel_jitter.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_light.h (+12, -10) (Diff)
/intern/cycles/kernel/kernel_light_background.h (+13, -10) (Diff)
/intern/cycles/kernel/kernel_light_common.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_passes.h (+6, -6) (Diff)
/intern/cycles/kernel/kernel_path.h (+15, -10) (Diff)
/intern/cycles/kernel/kernel_path_branched.h (+12, -7) (Diff)
/intern/cycles/kernel/kernel_path_common.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+8, -6) (Diff)
/intern/cycles/kernel/kernel_path_subsurface.h (+2, -2) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+4, -4) (Diff)
/intern/cycles/kernel/kernel_path_volume.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_profiling.h (+2, -1) (Diff)
/intern/cycles/kernel/kernel_queues.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_random.h (+15, -12) (Diff)
/intern/cycles/kernel/kernel_shader.h (+40, -32) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+8, -8) (Diff)
/intern/cycles/kernel/kernel_subsurface.h (+16, -9) (Diff)
/intern/cycles/kernel/kernel_types.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_volume.h (+21, -21) (Diff)
/intern/cycles/kernel/kernel_work_stealing.h (+2, -2) (Diff)
/intern/cycles/kernel/osl/osl_closures.cpp (+1, -1) (Diff)
/intern/cycles/kernel/osl/osl_services.cpp (+29, -21) (Diff)
/intern/cycles/kernel/osl/osl_services.h (+12, -4) (Diff)
/intern/cycles/kernel/osl/osl_shader.cpp (+15, -6) (Diff)
/intern/cycles/kernel/osl/osl_shader.h (+14, -5) (Diff)
/intern/cycles/kernel/svm/svm.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_ao.h (+6, -3) (Diff)
/intern/cycles/kernel/svm/svm_aov.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_attribute.h (+14, -5) (Diff)
/intern/cycles/kernel/svm/svm_bevel.h (+6, -3) (Diff)
/intern/cycles/kernel/svm/svm_blackbody.h (+5, -2) (Diff)
/intern/cycles/kernel/svm/svm_brick.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_bump.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_camera.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_checker.h (+4, -1) (Diff)
/intern/cycles/kernel/svm/svm_clamp.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_convert.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_displace.h (+10, -4) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+6, -6) (Diff)
/intern/cycles/kernel/svm/svm_hsv.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_ies.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_image.h (+7, -4) (Diff)
/intern/cycles/kernel/svm/svm_magic.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_mapping.h (+13, -5) (Diff)
/intern/cycles/kernel/svm/svm_map_range.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_math.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_mix.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_musgrave.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_noisetex.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_normal.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_ramp.h (+8, -4) (Diff)
/intern/cycles/kernel/svm/svm_sepcomb_hsv.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_sky.h (+4, -4) (Diff)
/intern/cycles/kernel/svm/svm_tex_coord.h (+8, -5) (Diff)
/intern/cycles/kernel/svm/svm_value.h (+2, -2) (Diff)
/intern/cycles/kernel/svm/svm_vector_transform.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_vertex_color.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_voronoi.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_voxel.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wave.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wavelength.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_white_noise.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wireframe.h (+5, -2) (Diff)