Blender Git Loki

Git Commits -> Revision 2f79d1c

Revision 2f79d1c by Sergey Sharybin (master)
January 22, 2018, 16:19 (GMT)
Cycles: Replace use_qbvh boolean flag with an enum-based property

This was we can introduce other types of BVH, for example, wider ones, without
causing too much mess around boolean flags.

Thoughs:

- Ideally device info should probably return bitflag of what BVH types it
supports.

It is possible to implement based on simple logic in device/ and mesh.cpp,
rest of the changes will stay the same.

- Not happy with workarounds in util_debug and duplicated enum in kernel.
Maybe enbum should be stores in kernel, but then it's kind of weird to include
kernel types from utils. Soudns some cyclkic dependency.

Reviewers: brecht, maxim_d33

Reviewed By: brecht

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

Commit Details:

Full Hash: 2f79d1c0584f4d72984e56db1f5878be3360e044
Parent Commit: 0f69026
Lines Changed: +267, -136

23 Modified Paths:

/intern/cycles/blender/addon/properties.py (+10, -1) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -1) (Diff)
/intern/cycles/blender/blender_python.cpp (+1, -1) (Diff)
/intern/cycles/blender/blender_sync.cpp (+1, -1) (Diff)
/intern/cycles/bvh/bvh.cpp (+49, -5) (Diff)
/intern/cycles/bvh/bvh4.cpp (+1, -1) (Diff)
/intern/cycles/bvh/bvh_params.h (+29, -3) (Diff)
/intern/cycles/device/device.cpp (+2, -2) (Diff)
/intern/cycles/device/device.h (+11, -9) (Diff)
/intern/cycles/device/device_cpu.cpp (+4, -1) (Diff)
/intern/cycles/device/device_cuda.cpp (+1, -1) (Diff)
/intern/cycles/device/device_network.cpp (+1, -1) (Diff)
/intern/cycles/device/device_opencl.cpp (+1, -1) (Diff)
/intern/cycles/kernel/bvh/bvh_local.h (+16, -17) (Diff)
/intern/cycles/kernel/bvh/bvh_shadow_all.h (+17, -17) (Diff)
/intern/cycles/kernel/bvh/bvh_traversal.h (+24, -24) (Diff)
/intern/cycles/kernel/bvh/bvh_volume.h (+13, -13) (Diff)
/intern/cycles/kernel/bvh/bvh_volume_all.h (+15, -15) (Diff)
/intern/cycles/kernel/kernel_types.h (+11, -1) (Diff)
/intern/cycles/render/mesh.cpp (+9, -5) (Diff)
/intern/cycles/render/scene.h (+31, -5) (Diff)
/intern/cycles/util/util_debug.cpp (+11, -9) (Diff)
/intern/cycles/util/util_debug.h (+8, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021