Blender Git Loki

Git Commits -> Revision 7f4479d

Revision 7f4479d by George Kyriazis (master)
May 9, 2015, 14:52 (GMT)
Cycles: OpenCL kernel split

This commit contains all the work related on the AMD megakernel split work
which was mainly done by Varun Sundar, George Kyriazis and Lenny Wang, plus
some help from Sergey Sharybin, Martijn Berger, Thomas Dinges and likely
someone else which we're forgetting to mention.

Currently only AMD cards are enabled for the new split kernel, but it is
possible to force split opencl kernel to be used by setting the following
environment variable: CYCLES_OPENCL_SPLIT_KERNEL_TEST=1.

Not all the features are supported yet, and that being said no motion blur,
camera blur, SSS and volumetrics for now. Also transparent shadows are
disabled on AMD device because of some compiler bug.

This kernel is also only implements regular path tracing and supporting
branched one will take a bit. Branched path tracing is exposed to the
interface still, which is a bit misleading and will be hidden there soon.

More feature will be enabled once they're ported to the split kernel and
tested.

Neither regular CPU nor CUDA has any difference, they're generating the
same exact code, which means no regressions/improvements there.

Based on the research paper:

https://research.nvidia.com/sites/default/files/publications/laine2013hpg_paper.pdf

Here's the documentation:

https://docs.google.com/document/d/1LuXW-CV-sVJkQaEGZlMJ86jZ8FmoPfecaMdR-oiWbUY/edit

Design discussion of the patch:

https://developer.blender.org/T44197

Differential Revision: https://developer.blender.org/D1200

Commit Details:

Full Hash: 7f4479da425b2d44a585f1b7b63f91d9dfecef02
Parent Commit: f680c1b
Committed By: Sergey Sharybin
Lines Changed: +5784, -828

16 Added Paths:

/intern/cycles/kernel/kernel_background_buffer_update.cl (+282, -0) (View)
/intern/cycles/kernel/kernel_data_init.cl (+384, -0) (View)
/intern/cycles/kernel/kernel_direct_lighting.cl (+137, -0) (View)
/intern/cycles/kernel/kernel_Holdout_Emission_Blurring_Pathtermination_AO.cl (+283, -0) (View)
/intern/cycles/kernel/kernel_lamp_emission.cl (+209, -0) (View)
/intern/cycles/kernel/kernel_next_iteration_setup.cl (+176, -0) (View)
/intern/cycles/kernel/kernel_path_common.h (+50, -0) (View)
/intern/cycles/kernel/kernel_queues.h (+132, -0) (View)
/intern/cycles/kernel/kernel_queue_enqueue.cl (+98, -0) (View)
/intern/cycles/kernel/kernel_scene_intersect.cl (+164, -0) (View)
/intern/cycles/kernel/kernel_shaderdata_vars.h (+99, -0) (View)
/intern/cycles/kernel/kernel_shader_eval.cl (+93, -0) (View)
/intern/cycles/kernel/kernel_shadow_blocked.cl (+126, -0) (View)
/intern/cycles/kernel/kernel_split.h (+87, -0) (View)
/intern/cycles/kernel/kernel_sum_all_radiance.cl (+59, -0) (View)
/intern/cycles/kernel/kernel_work_stealing.h (+193, -0) (View)

41 Modified Paths:

/intern/cycles/device/device.h (+2, -0) (Diff)
/intern/cycles/device/device_opencl.cpp (+2312, -128) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+50, -50) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+28, -0) (Diff)
/intern/cycles/kernel/geom/geom_attribute.h (+4, -4) (Diff)
/intern/cycles/kernel/geom/geom_bvh.h (+2, -0) (Diff)
/intern/cycles/kernel/geom/geom_motion_triangle.h (+18, -18) (Diff)
/intern/cycles/kernel/geom/geom_object.h (+51, -18) (Diff)
/intern/cycles/kernel/geom/geom_primitive.h (+18, -18) (Diff)
/intern/cycles/kernel/geom/geom_triangle.h (+21, -21) (Diff)
/intern/cycles/kernel/kernel.cl (+33, -28) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_camera.h (+6, -7) (Diff)
/intern/cycles/kernel/kernel_compat_cpu.h (+2, -0) (Diff)
/intern/cycles/kernel/kernel_compat_cuda.h (+1, -0) (Diff)
/intern/cycles/kernel/kernel_compat_opencl.h (+6, -0) (Diff)
/intern/cycles/kernel/kernel_debug.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_differential.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_emission.h (+63, -22) (Diff)
/intern/cycles/kernel/kernel_globals.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_passes.h (+32, -6) (Diff)
/intern/cycles/kernel/kernel_path.h (+15, -40) (Diff)
/intern/cycles/kernel/kernel_path_state.h (+3, -3) (Diff)
/intern/cycles/kernel/kernel_path_surface.h (+25, -23) (Diff)
/intern/cycles/kernel/kernel_random.h (+9, -9) (Diff)
/intern/cycles/kernel/kernel_shader.h (+150, -147) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+38, -16) (Diff)
/intern/cycles/kernel/kernel_types.h (+108, -79) (Diff)
/intern/cycles/kernel/svm/svm.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_attribute.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_camera.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+75, -65) (Diff)
/intern/cycles/kernel/svm/svm_displace.h (+5, -5) (Diff)
/intern/cycles/kernel/svm/svm_fresnel.h (+7, -7) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+21, -21) (Diff)
/intern/cycles/kernel/svm/svm_image.h (+3, -3) (Diff)
/intern/cycles/kernel/svm/svm_light_path.h (+7, -7) (Diff)
/intern/cycles/kernel/svm/svm_tex_coord.h (+57, -57) (Diff)
/intern/cycles/kernel/svm/svm_vector_transform.h (+1, -1) (Diff)
/intern/cycles/kernel/svm/svm_wireframe.h (+24, -13) (Diff)
/intern/cycles/render/session.cpp (+4, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021