Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
AgeCommit message (Collapse)Author
2016-05-20Cycles: Fix long compile time with MSVC.Thomas Dinges
Compile time per kernel increased alot after recent image commits, re-shuffle some code to fix this. Patch by "LazyDodo". Differential Revision: https://developer.blender.org/D2012
2016-05-20Fix T48472: issue in array refactor, causing performance regression in BVH ↵Brecht Van Lommel
build.
2016-05-19Cycles: Add XML parsing of MappingNodes to Cycles StandaloneLukas Stockner
Reviewers: dingto, sergey Differential Revision: https://developer.blender.org/D2009
2016-05-19Fix T48204: Generic Tablet on Linux - Erratic strokes with pressure ↵Bastien Montagne
sensitivity enabled. Once and for all - I hope! So, for the records: Xinput1 events' valuators have a first_axis and axis_count defining the 'range' of valid axes for that event - but valid data in the valuator's array **always** start at zero (which means that, if event reports first axis as being axis 2, axis 2's value is in axis_data[0]).
2016-05-19Cycles / CUDA: Don't use bundled kernel if Adaptive is enforced by the user.Thomas Dinges
2016-05-19Cycles: Add support for bindless textures.Thomas Dinges
This adds support for CUDA Texture objects (also known as Bindless textures) for Kepler GPUs (Geforce 6xx and above). This is used for all 2D/3D textures, data still uses arrays as before. User benefits: * No more limits of image textures on Kepler. We had 5 float4 and 145 byte4 slots there before, now we have 1024 float4 and 1024 byte4. This can be extended further if we need to (just change the define). * Single channel textures slots (byte and float) are now supported on Kepler as well (1024 slots for each type). ToDo / Issues: * 3D textures don't work yet, at least don't show up during render. I have no idea whats wrong yet. * Dynamically allocate bindless_mapping array? I hope Fermi still works fine, but that should be tested on a Fermi card before pushing to master. Part of my GSoC 2016. Reviewers: sergey, #cycles, brecht Subscribers: swerner, jtheninja, brecht, sergey Differential Revision: https://developer.blender.org/D1999
2016-05-18Fix T47727: Weird bake results with non integer color valuesSergey Sharybin
2016-05-18Cycles: Fix compilation error of CUDA kernels after recent volume commitSergey Sharybin
Apparently the code path with malloc() was enabled for CUDA.
2016-05-18Cycles: Pole merging for spherical stereoSergey Sharybin
The idea of pole merge is to fade interocular distance after a certain altitude to zero when altitude goes closer to a pole. This should prevent annoyances looking up in the sky or down to the bottom. Works for both panorama and perspective cameras when Spherical Stereo is enabled. Reviewers: dfelinto, brecht Reviewed By: brecht Subscribers: sebastian_k Differential Revision: https://developer.blender.org/D1998
2016-05-18Cycles: Reduce amount of malloc() calls from the kernelSergey Sharybin
This commit makes it so malloc() is only happening once per volume and once per transparent shadow query (per thread), improving scalability of the code to multiple CPU cores. Hard to measure this with a low-bottom i7 here currently, but from quick tests seems volume sampling gave about 3-5% speedup. The idea is to store allocated memory in kernel globals, which are per thread on CPU already. Reviewers: dingto, juicyfruit, lukasstockner97, maiself, brecht Reviewed By: brecht Subscribers: Blendify, nutel Differential Revision: https://developer.blender.org/D1996
2016-05-18Cycles: Explicitly mark arguments as unusedSergey Sharybin
2016-05-18Fix issue in with multiple importance sampling in recent code refactor.Brecht Van Lommel
2016-05-18Cleanup code style inconsistency in last commits.Brecht Van Lommel
2016-05-17Fix C++11 build issues on OS X, remove references to outdated libs.Brecht Van Lommel
2016-05-17Code refactor: use shader pointers rather than shader indexes.Brecht Van Lommel
2016-05-17Code refactor: use dynamic shader node array lengths now that OSL supports them.Brecht Van Lommel
2016-05-17Code refactor: add some array utility methods, fix leak in assignment operator.Brecht Van Lommel
2016-05-17Fix CUDA MEMCPY condition, it should only copy 3D, 2D or 1D.Thomas Dinges
Found by Brecht, thanks!
2016-05-17Cycles / Requested Features: Volume was missing in logging print.Thomas Dinges
2016-05-16Atomic ops: add 'fetch_and_add_uint32' op.Bastien Montagne
Needed for next commit.
2016-05-16Cycles: Cleanup after recent refactorSergey Sharybin
Wrong indentation, wrong spacing.
2016-05-13Fix T48421: AO pass broken, only works when AO in cycles is enabledSergey Sharybin
2016-05-13Cycles: Scale debug pass with number of samplesSergey Sharybin
This way it's easier to compare different renders together without worrying about scale too much.
2016-05-12Cycles: Add support for single channel byte textures.Thomas Dinges
This way, we also save 3/4th of memory for single channel byte textures (e.g. Bump Maps). Note: In order for this to work, the texture *must* have 1 channel only. In Gimp you can e.g. do that via the menu: Image -> Mode -> Grayscale
2016-05-12Fix array bounds compile warning.Thomas Dinges
2016-05-12Cleanup: Fix typo.Thomas Dinges
2016-05-11Cleanup: Remove outdated comment and add new one about slot IDs.Thomas Dinges
2016-05-11Cycles: Add support for single channel float textures on CPU.Thomas Dinges
Until now, single channel textures were packed into a float4, wasting 3 floats per pixel. Memory usage of such textures is now reduced by 3/4. Voxel Attributes such as density, flame and heat benefit from this, but also Bumpmaps with one channel. This commit also includes some cleanup and code deduplication for image loading. Example Smoke render from Cosmos Laundromat: http://www.pasteall.org/pic/show.php?id=102972 Memory here went down from ~600MB to ~300MB. Reviewers: #cycles, brecht Differential Revision: https://developer.blender.org/D1981
2016-05-11Cycles: Use explicit qualifier for single-argument constructorsSergey Sharybin
Almost in all cases we want such constructors to be explicit, there are exceptions but only in few places.
2016-05-10Fix T48369: Missing suport for main '+' key.Bastien Montagne
Many keyboard layouts (italian, spanish, german...) have direct access to '+' key on main keyboard area (not the numpad one), ans x11 has own define for this key, so use it instead of generating an unkown key event. Note that we most likely have much more missing 'specific' keycodes for non-US keyboard layout, but think since we already had a 'minus' keyevent, supporting 'plus' one is totally consistent. And we had a spare space in our defined values just for it even! This keyevent is only supported/generated by x11 and cocoa Ghost backends for now, neither SDL nor win32 seem to have matching key events...
2016-05-10Cycles: Add support for float4 textures on OpenCL.Thomas Dinges
Title says it all, this adds OpenCL float4 texture support. There is a bug in the code still, I get a "Out of ressources error" on nvidia hardware here, not sure whats wrong yet. Will investigate further, but maybe someone else has an idea. :) Reviewers: #cycles, brecht Subscribers: brecht, candreacchio Differential Revision: https://developer.blender.org/D1983
2016-05-09Cleanup: header, styleCampbell Barton
2016-05-09Cleanup and refactor our atomic library.Bastien Montagne
This commit: * Removes most of all dirty internal details from public atomi_ops.h file, and move them into /intern private subdir. * Removes unused 'architectures' (__apple__ and jemalloc). * Split each implementation into its own file. * Makes use of C99's limits.h system header to determine pointer and int size, instead of using fix hardcoded list of architectures. * Introduces new 'faked' atomics ops for floats. Note that we may add a lot more real and 'faked' atomic operations over integers and floats (multiplication, division, bitshift, bitwise booleans, etc.), as needs arise. Reviewers: sergey, campbellbarton Differential Revision: https://developer.blender.org/D1982
2016-05-09CMake: Fix compilation error when toolkit gives empty resultSergey Sharybin
Should we also check whether toolkit exist perhaps?
2016-05-09Atomics: Add atomic_fetch_and_or_uint8() functionSergey Sharybin
Hopefully it compiles on all platforms still..
2016-05-09Cleanup: Avoid duplicative defines for CPU textures, use the ones from ↵Thomas Dinges
util_texture.h Also includes some further byte -> byte4 renaming, missed that in last commit.
2016-05-09Cleanup: More byte -> byte4 renaming for consistency.Thomas Dinges
2016-05-08Fix T48380: fix for recent image manager code cleanup.Brecht Van Lommel
2016-05-08Code cleanup: use special type instead of node names.Brecht Van Lommel
2016-05-08Code cleanup: tweaks to image manager code found while looking into previous ↵Brecht Van Lommel
bug.
2016-05-08Fix T48377: Cycles crash removing float image texture node during viewport ↵Brecht Van Lommel
render.
2016-05-08Cycles: Fix two small memory leaks and deduplicate table freeingLukas Stockner
This commit makes remove_table skip the freeing if the offset is already set to invalid - or, if it wasn't, set it to invalid after freeing. That's what the current code was already doing in the Manager classes, this change allows them to just call remove without the additional code. Also, two potential memory leaks where new tables were always allocated without freeing the old ones are fixed. Reviewers: sergey, dingto, brecht Differential Revision: https://developer.blender.org/D1974
2016-05-08Cycles: Cleanup: Swap order of the RNG-state-initializing for-loopsLukas Stockner
Swap the for-loops in the RenderBuffer reset code to follow the convention of looping over y in the outer loop. The improved cache performance won't really be noticable here, but it's nicer if it follows the usual style.
2016-05-07Cleanup: Remove unneded (void) line, we don't have ifdefs here anymore.Thomas Dinges
2016-05-07Fix T48368: Cycles mix RGB constant folding bug after recent refactor.Brecht Van Lommel
2016-05-07Fix cycles-xml with OSL support after changes inroduced in ↵Martijn Berger
1422f0dd1697d7b671a7b447fd58db7dfe775821
2016-05-07Some fixes for CUDA runtime compile:Thomas Dinges
* When Baking wasn't used we got an error. * On top of Volume Nodes (NODES_FEATURE_VOLUME), we now also check if we need volume sampling code, so we can disable that as well and save some further compilation time.
2016-05-07Cycles: Make CUDA adaptive feature compile a Debug flag.Thomas Dinges
If the CUDA Toolkit is installed and the user is on Linux, adaptive, feature based CUDA runtime compile is now possible to enable via: * Environment flag CYCLES_CUDA_ADAPTIVE_COMPILE or * Debug menu (Debug value 256) in the Cycles UI.
2016-05-06Cleanup: Move full SVM statistics to VLOG(2) verbosity level.Thomas Dinges
2016-05-06Cleanup: Rename texture slots to float4 and byte, to distinguish from future ↵Thomas Dinges
float (single channel) and half_float slots. Should be no functional changes, tested CPU and CUDA.