Campbell Barton
4b9d242be5
Merge branch 'master' into blender2.8
2018-11-22 15:16:45 +11:00
Sergey Sharybin
968bf0df14
Fix T57811: Render crashes in certain scenes when AO Bounces are used
2018-11-21 14:17:26 +01:00
Sergey Sharybin
6f48bfc7a8
Cycles: Cleanup, use utility function
...
Replaces inlined platform-specific code.
2018-11-21 13:51:18 +01:00
Sergey Sharybin
65143542af
Cycles: Cleanup, reduce indentation level
2018-11-21 12:41:24 +01:00
Sergey Sharybin
700330afe8
Cycles: Cleanup, comments and dead code
2018-11-21 11:33:11 +01:00
Sergey Sharybin
65d01def80
Cycles: Cleanup, CUDA code path is not possible inside AVX2
2018-11-21 11:28:49 +01:00
Sergey Sharybin
8610b57271
Cycles: Cleanup, code style
2018-11-15 17:19:26 +01:00
Sergey Sharybin
c617fcad10
Merge branch 'master' into blender2.8
2018-11-15 17:17:37 +01:00
Sergey Sharybin
cd9ab9d99e
Cycles: Cleanup, code style
2018-11-15 17:16:40 +01:00
Clément Foucault
c3d03b4434
Lamps: Remove HEMI light type
...
This type is not supported by either Eevee or Cycles. If other types of
lamps are needed by external engines, we should support adding custom types.
2018-11-14 11:50:37 +01:00
Campbell Barton
55e719ec35
Merge branch 'master' into blender2.8
2018-11-14 17:21:34 +11:00
Campbell Barton
d7f55c4ff5
Cleanup: comment block tabs
2018-11-14 17:10:56 +11:00
Sergey Sharybin
3a05331445
Merge branch 'master' into blender2.8
2018-11-12 12:16:31 +01:00
Sergey Sharybin
d23a53c74a
Cycles: Fix/workaround for gcc-7.2
...
For some reason when building with gcc-7.2 (which is default
in previous Ubuntu LTS) the guarded allocator is not being
properly instantiated.
Doesn't happen with newer version of gcc-7 which is 7.3, and
also doesn't happen with gcc-6 and gcc-8.
Would be nice to know what is wrong, but for the time being
committing workaround which keeps Blender users happy.
2018-11-12 12:16:07 +01:00
Sergey Sharybin
a0022f80f4
Merge branch 'master' into blender2.8
2018-11-12 11:02:46 +01:00
Sergey Sharybin
e732c6af3b
Cycles: Proper comment for closing header guard
2018-11-12 11:02:10 +01:00
Sergey Sharybin
8d07af5d10
Merge branch 'master' into blender2.8
2018-11-09 17:56:28 +01:00
Sergey Sharybin
65e9388440
Revert "Cycles: Cleanup, move Embree BVH logic to own file"
...
While we shouldn't have logic in an entry point, and since one should
not be making typos when moving lines around, there is bigger entanglement
issue with BVH host code using kernel function. This is bad violation,
but is tricky to get solved moments before the weekly.
In order to keep things in a (less) broken state than before own cleanup
reverting the changes.
This reverts commit 2bad10be96 .
This reverts commit ddabb21d05
2018-11-09 17:54:09 +01:00
Sergey Sharybin
5494683651
Cycles: Free Blender side data as soon as we don't need it
...
Currently this is possible after built-in images are loaded in memory.
Allows to save memory used by dependency graph and copy-on-write.
In practice this lowers peak system memory usage from 52GB to 42GB on
a production file of spring 03_035_A.lighting.
Note, that this only applies to F12 and command line renders.
Bigger note, that this optimization is currently only possible if
there are no grease pencil objects to be rendered.
2018-11-09 17:53:02 +01:00
Sergey Sharybin
cbbf991f62
Cycles: Add name field to scene
...
Doesn't mean much for Cycles itself, but allows to have nice logs
and progress reports without access of original scene.
2018-11-09 17:53:02 +01:00
Sergey Sharybin
9c1c2a40bf
Merge branch 'master' into blender2.8
2018-11-09 15:22:21 +01:00
Sergey Sharybin
e6573138f7
Cycles: Cleanup, remove unused method declaration
...
Was never defined. If it's really needed, consider using `const string&`.
2018-11-09 15:21:19 +01:00
Sergey Sharybin
78a6689aea
Merge branch 'master' into blender2.8
2018-11-09 14:34:33 +01:00
Sergey Sharybin
ddabb21d05
Cycles; Cleanup, line length
...
There are some more sanitization which would be cool to be done
in the neighbourhood of those functions, but that could also happen
later.
2018-11-09 12:31:46 +01:00
Sergey Sharybin
2bad10be96
Cycles: Cleanup, move Embree BVH logic to own file
...
There is no way we can keep generic entry point functions easy to
follow if we start adding actual logic in them.
2018-11-09 12:28:55 +01:00
Sergey Sharybin
2d98b198e9
Cycles: Cleanup, indentation in preprocessor
2018-11-09 12:12:11 +01:00
Sergey Sharybin
3e76cc494a
Cycles: Cleanup, indentation
2018-11-09 12:10:48 +01:00
Sergey Sharybin
203de0bbf0
Cycles: Cleanup, space after (void)
...
It was used in like 95% of places.
2018-11-09 12:08:51 +01:00
Sergey Sharybin
2330cadb0f
Cycles: Cleanup, don't use strict C prototypes
...
Those are more like a legacy of language, which is not
needed in C++.
2018-11-09 12:04:41 +01:00
Sergey Sharybin
c86d4b1d80
Cycles: Cleanup, split array from vector
...
Those are similar but different types, no reason to keep
their definitions in a single file.
2018-11-09 11:54:24 +01:00
Sergey Sharybin
b394e05118
Cycles: Cleanup, some documentation
2018-11-09 11:46:09 +01:00
Sergey Sharybin
a15e631537
Cycles: Cleanup, remove unneeded manual constructors specification
2018-11-09 11:44:33 +01:00
Sergey Sharybin
0e9be6fd7d
Cycles: Cleanup, remove unneeded method from vector
...
Since we've defaulted to C++11, no need to override this
method manually anymore.
2018-11-09 11:42:12 +01:00
Sergey Sharybin
cb4b5e12ab
Cycles: Cleanup, spacing after preprocessor
...
It is supposed to be two spaces before comment stating which if
else/endif statements corresponds to. Was mainly violated in the
header guards.
2018-11-09 11:34:54 +01:00
Brecht Van Lommel
c39f34def9
Fix Cycles viewport render info overlapping other text.
...
Now it shows more compact info below the view/object name. Render time and
memory usage is left out, as in most cases this is not so important. These
could be added back optionally if needed.
2018-11-08 18:31:33 +01:00
Brecht Van Lommel
146b39a45d
Merge branch 'master' into blender2.8
2018-11-08 15:15:29 +01:00
Brecht Van Lommel
116be3deff
Fix build on 32bit after Embree changes.
2018-11-08 14:58:01 +01:00
Lukas Stockner
47c77cd89c
Cycles: Write Cryptomatte metadata according to the specification
...
Reviewers: brecht, sergey, swerner
Subscribers: creamsurfer, Tanguy, Noss, SteffenD
Differential Revision: https://developer.blender.org/D3862
2018-11-08 01:07:54 +01:00
Stefan Werner
a0d8e52b54
Cycles: Fixed BVH UI options enabling/disabling when Embree is enabled.
2018-11-07 20:50:45 +01:00
Stefan Werner
85a9744905
Merge branch 'master' into blender2.8
2018-11-07 20:44:40 +01:00
Stefan Werner
d3320c5488
Cycles: Rearranged macros in kernel_types.h to fix Embree build.
2018-11-07 15:20:24 +01:00
Brecht Van Lommel
4610ca599a
Merge branch 'master' into blender2.8
2018-11-07 14:54:32 +01:00
Brecht Van Lommel
33201a48b0
Fix build with OSL, remove unneeded file after Embree changes.
2018-11-07 14:38:07 +01:00
Stefan Werner
9d0eac6ba5
Merge branch 'master' into blender2.8
2018-11-07 14:30:09 +01:00
Stefan Werner
d3dd3739f6
Cycles: Fixed a warning.
2018-11-07 14:04:22 +01:00
Stefan Werner
e96986fa47
Cycles: Fixed OpenCL render after the Embree checkin.
2018-11-07 13:53:56 +01:00
Stefan Werner
2c5531c0a5
Cycles: Added Embree as BVH option for CPU renders.
...
Note that this is turned off by default and must be enabled at build time with the CMake WITH_CYCLES_EMBREE flag.
Embree must be built as a static library with ray masking turned on, the `make deps` scripts have been updated accordingly.
There, Embree is off by default too and must be enabled with the WITH_EMBREE flag.
Using Embree allows for much faster rendering of deformation motion blur while reducing the memory footprint.
TODO: GPU implementation, deduplication of data, leveraging more of Embrees features (e.g. tessellation cache).
Differential Revision: https://developer.blender.org/D3682
2018-11-07 12:58:12 +01:00
Brecht Van Lommel
d323c0ad9c
UI: change Cycles render panels organization.
...
Move geometry panels to top level, move device/OSL back to top, and
various other changes.
2018-11-06 20:04:04 +01:00
Brecht Van Lommel
b04c856122
UI: some reordering of Cycles panels.
2018-11-06 17:51:58 +01:00
Brecht Van Lommel
1e56c8c47d
Merge branch 'master' into blender2.8
2018-11-05 00:30:33 +01:00