Bastien Montagne
91af8f2ae2
Merge branch 'master' into blender2.8
...
Conflicts:
intern/cycles/device/device.cpp
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/material.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/util/ed_util.c
source/blender/windowmanager/intern/wm_files_link.c
2017-11-06 18:02:46 +01:00
Brecht Van Lommel
8a72be7697
Cycles: reduce closure memory usage for emission/shadow shader data.
...
With a Titan Xp, reduces path trace local memory from 1092MB to 840MB.
Benchmark performance was within 1% with both RX 480 and Titan Xp.
Original patch was implemented by Sergey.
Differential Revision: https://developer.blender.org/D2249
2017-11-05 20:48:33 +01:00
Brecht Van Lommel
c571be4e05
Code refactor: sum transparent and absorption weights outside closures.
2017-11-05 18:13:44 +01:00
Brecht Van Lommel
2c02a04c46
Code refactor: remove emission and background closures, sum directly.
2017-11-05 18:13:44 +01:00
Brecht Van Lommel
cac3d4d166
Cycles: fix inefficient attribute map storage, saves 615MB in victor scene.
2017-11-05 18:00:48 +01:00
Brecht Van Lommel
5801ef71e4
Code refactor: device memory cleanups, preparing for mapped host memory.
2017-11-05 15:22:04 +01:00
Brecht Van Lommel
5475314f49
Cycles: reserve CUDA local memory ahead of time.
...
This way we can log the amount of memory used, and it will be important
for host mapped memory support.
2017-11-05 15:22:04 +01:00
Campbell Barton
d4fe083b35
Merge branch 'master' into blender2.8
2017-11-04 21:45:52 +11:00
Brecht Van Lommel
33b5e8daff
Code refactor: replace CUDA array with linear memory for 1D and 2D textures.
...
This is a prequisite for getting host memory allocation to work. There appears
to be no support for 3D textures using host memory. The original version of
this code was written by Stefan Werner for D2056.
2017-11-04 02:23:00 +01:00
Brecht Van Lommel
6ec599c682
Fix T53247: mixed CPU + GPU render wrong texture limits.
2017-11-03 20:32:29 +01:00
Campbell Barton
cd4f925f56
Merge branch 'master' into blender2.8
2017-11-03 20:59:15 +11:00
Brecht Van Lommel
50c129760d
Fix Cycles showing empty tiles while they are being denoised.
2017-11-02 15:23:55 +01:00
Sybren A. Stüvel
f7d59fbc46
Merge branch 'master' into blender2.8
...
# Conflicts:
# tests/gtests/alembic/abc_export_test.cc
2017-11-02 14:37:10 +01:00
Campbell Barton
7eb4ef6cac
Merge branch 'master' into blender2.8
2017-11-03 00:31:47 +11:00
Brecht Van Lommel
ff97dcebf3
Fix T53182: cancelling save buffers + denoising render clears image.
2017-11-02 14:31:05 +01:00
Mai Lavelle
5cb8730689
Cycles: Add another limit to OpenCL memory usage
...
Some drivers may report very large allocation sizes, which could cause
unnecessary memory usage. This is now limited to 2gb which should
still be enough to get the needed performance benefits without waste.
2017-11-02 08:14:21 -04:00
Campbell Barton
4a85089abe
Merge branch 'master' into blender2.8
2017-11-02 15:45:19 +11:00
Sergey Sharybin
71f46bc367
Cycles: Add utility function to distinguish between scatter and absorption volume ID
2017-11-01 11:10:51 +01:00
Sergey Sharybin
5d7138c08a
Cycles: Cleanup, make it more obvious what preprocessor belongs to
2017-11-01 11:10:10 +01:00
Sergey Sharybin
7f45acee80
Cycles: Cleanup, delete trailing whitespace
2017-11-01 11:06:55 +01:00
Bastien Montagne
c8de666cbe
Merge branch 'master' into blender2.8
2017-10-31 17:38:53 +01:00
Campbell Barton
941484ff81
Merge branch 'master' into blender2.8
2017-11-01 01:27:03 +11:00
Sergey Sharybin
5296c2e099
Experiment with adding output file meta data from render engine
...
The idea is to make it possible to report extra meta data from
render engine to the file writing. This way we can provide
additional information such as number of samples rendered by
resumable Cycles rendering so we can easily combine files back.
Currently only report number of samples from Cycles when rendering
a single render-layer scene. This is something what was required
here at the studio. We can easily extend that further.
Ideally we would also need to support non-string metadata, but
that's for later.
Reviewers: mont29, campbellbarton
Reviewed By: mont29, campbellbarton
Subscribers: sybren, candreacchio
Differential Revision: https://developer.blender.org/D2502
2017-10-31 15:05:53 +01:00
Sergey Sharybin
46963f359d
Cycles: Bump version number to 1.9.0
...
This matches Blender Release 2.79.
2017-10-31 13:34:34 +01:00
Sergey Sharybin
39671ac504
Fix crash of standalone app after recent refactor
2017-10-31 13:34:23 +01:00
Arto Kitula
076abf6cd8
MacOS: Use correct Cocoa protocol on any compiler
2017-10-31 11:30:55 +02:00
Sybren A. Stüvel
34859b285a
Merge branch 'master' into blender2.8
2017-10-29 17:31:55 +01:00
Brecht Van Lommel
bbc7eb8ae5
Cycles: restore SOBOL_SKIP hack, for some cases where it helps still.
2017-10-29 16:44:20 +01:00
Julian Eisel
a3313315ba
Merge branch 'master' into blender2.8
2017-10-26 22:57:47 +02:00
Arto Kitula
1effab7809
Fix T52984. Trackpad rotation to natural direction
2017-10-26 23:11:25 +03:00
Julian Eisel
f074a6dd2e
Merge branch 'master' into blender2.8
2017-10-25 22:04:01 +02:00
Brecht Van Lommel
171c4e982f
Cycles: use AO factor to let user adjust intensity of AO bounces.
...
We are already using the AO distance, so might as well offer this extra
control over the intensity. Useful when an interior scene is supposed to
be significantly darker than the background shader.
2017-10-25 21:46:23 +02:00
Sergey Sharybin
7771e0b474
Merge branch 'master' into blender2.8
2017-10-25 11:26:53 +02:00
Campbell Barton
2103194f79
Fix T53004: XWayland ignores cursor-warp calls
...
There is currently a limitation in XWayland,
the cursor needs to be hidden during warp calls.
2017-10-25 20:12:12 +11:00
Sergey Sharybin
1e107fa514
Merge branch 'master' into blender2.8
2017-10-25 10:13:35 +02:00
Brecht Van Lommel
83877632a3
Fix one more assert being triggered due to recent changes.
2017-10-25 01:22:16 +02:00
Brecht Van Lommel
34fe3f9c06
Code refactor: remove MEM_WRITE_ONLY, always use MEM_READ_WRITE.
...
It's unlikely the driver can do useful optimizations with this, and if
we sum multiple samples we are reading from the memory anyway.
2017-10-24 23:53:09 +02:00
Brecht Van Lommel
fe253389e0
Fix Cycles gtests build on macOS.
2017-10-24 17:52:20 +02:00
Brecht Van Lommel
ec49503a33
Fix T53146: incomplete multi GPU and CPU + GPU memory statistics.
...
Part due to recent changes, part old bug.
2017-10-24 17:40:43 +02:00
Sergey Sharybin
7ea7fd45d0
Merge branch 'master' into blender2.8
2017-10-24 12:19:48 +02:00
Sergey Sharybin
e03df90bf3
Cycles: Fix compilation in debug mode
...
Please check compilation before committing refactor changes!
2017-10-24 12:09:02 +02:00
Sergey Sharybin
eccd18a91f
Cycles: Fix compilation error without C++11
2017-10-24 11:14:01 +02:00
Sergey Sharybin
d0f48d33f4
Cycles: Fix memory leak in test and simplify code
2017-10-24 11:12:28 +02:00
Sergey Sharybin
1dd33b2f23
Cycles: Fix test compilation failure after recent refactor
...
The test will leak CPU devices, but is all passing other than that.
Leak will be fixed shortly.
P.S. Committing code refactor without running regression tests, tsk ;)
2017-10-24 10:48:16 +02:00
Brecht Van Lommel
a1aad1f8d1
Fix T53134: denoising with CPU + GPU render leaves some tiles noisy.
2017-10-24 04:09:48 +02:00
Brecht Van Lommel
f5456df095
Merge branch 'master' into blender2.8
2017-10-24 02:05:41 +02:00
Brecht Van Lommel
070a668d04
Code refactor: move more memory allocation logic into device API.
...
* Remove tex_* and pixels_* functions, replace by mem_*.
* Add MEM_TEXTURE and MEM_PIXELS as memory types recognized by devices.
* No longer create device_memory and call mem_* directly, always go
through device_only_memory, device_vector and device_pixels.
2017-10-24 01:25:19 +02:00
Brecht Van Lommel
aa8b4c5d81
Code refactor: use device_only_memory and device_vector in more places.
2017-10-24 01:25:13 +02:00
Brecht Van Lommel
7ad9333fad
Code refactor: store device/interp/extension/type in each device_memory.
2017-10-24 01:03:59 +02:00
Brecht Van Lommel
ae41f38f78
Code refactor: pass device to scene, check OSL with device info.
2017-10-24 01:03:59 +02:00