Blender Git Loki

Git Commits -> Revision 9815f8a

Revision 9815f8a by Sergey Sharybin (master)
January 29, 2016, 23:23 (GMT)
Cycles: Cleanup of OpenCL split kernel routines

The idea is to switch from allocating separate buffers for shader data's
structure of arrays to allocating one huge memory block and do some index
trickery to make it accessed as SOA.

This saves quite reasonable amount of lines of code in device_opencl and
also makes it possible to get rid of special declaration of ShaderData
structure.

As a side effect it also makes it easier to experiment with SOA vs. AOS
for split kernel.

Works fine here on NVidia GTX580, Intel CPU amd AMD Fiji cards.

Reviewers: #cycles, brecht, juicyfruit, dingto

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

Commit Details:

Full Hash: 9815f8a623d47c9a52aac8ac3a2bcc17d1c74b5e
Parent Commit: fef53c7
Lines Changed: +100, -758

1 Deleted Path:

/intern/cycles/kernel/kernel_shaderdata_vars.h (+0, -94)

6 Modified Paths:

/intern/cycles/device/device_opencl.cpp (+10, -341) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+0, -1) (Diff)
/intern/cycles/kernel/kernels/opencl/kernel_data_init.cl (+2, -145) (Diff)
/intern/cycles/kernel/kernel_shadow.h (+1, -1) (Diff)
/intern/cycles/kernel/kernel_types.h (+87, -10) (Diff)
/intern/cycles/kernel/split/kernel_data_init.h (+0, -166) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021