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
AgeCommit message (Collapse)Author
2022-06-29Cycles: Add support for rendering on Intel GPUs using oneAPIXavier Hallade
This patch adds a new Cycles device with similar functionality to the existing GPU devices. Kernel compilation and runtime interaction happen via oneAPI DPC++ compiler and SYCL API. This implementation is primarly focusing on Intel® Arc™ GPUs and other future Intel GPUs. The first supported drivers are 101.1660 on Windows and 22.10.22597 on Linux. The necessary tools for compilation are: - A SYCL compiler such as oneAPI DPC++ compiler or https://github.com/intel/llvm - Intel® oneAPI Level Zero which is used for low level device queries: https://github.com/oneapi-src/level-zero - To optionally generate prebuilt graphics binaries: Intel® Graphics Compiler All are included in Linux precompiled libraries on svn: https://svn.blender.org/svnroot/bf-blender/trunk/lib The same goes for Windows precompiled binaries but for the graphics compiler, available as "Intel® Graphics Offline Compiler for OpenCL™ Code" from https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html, for which path can be set as OCLOC_INSTALL_DIR. Being based on the open SYCL standard, this implementation could also be extended to run on other compatible non-Intel hardware in the future. Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D15254 Co-authored-by: Nikita Sirgienko <nikita.sirgienko@intel.com> Co-authored-by: Stefan Werner <stefan.werner@intel.com>
2022-06-29VSE: Improved Retiming systemRichard Antalik
Patch implements better way to control playback speed than it is possible to do with speed effect. Speed factor property can be set in Time panel. There are 2 layers of control: Option to retime movie to match scene FPS rate. Custom speed factor to control playback rate. Since playback rate is strip property, it is now possible to manipulate strip as normal one even if it is retimed. To facilitate manipulation, some functions need to consider speed factor and apply necessary corrections to strip offset or strip start. These corrections may need to be float numbers, so start and offsets must be float as well. Sound strips now use speed factor instead of pitch. This means, that strips will change length to match usable length. In addition, it is possible to group movie and sound strip and change speed of meta strip.
2022-06-29BLI: add Vector.append_and_get_index with rvalue parameterJacques Lucke
This makes it possible to use this method with `std::unique_ptr`.
2022-06-29Fix uninitialized memory use in key-down events on window activationCampbell Barton
2022-06-29GHOST/Wayland: quiet warning with empty title with libdecorCampbell Barton
Set the title before showing the window.
2022-06-29GHOST/Wayland: support older output manager (for Weston support)Campbell Barton
Support zxdg_output_manager_v1 v2, as weston only supports this. Even though it's a reference implementation it can be useful for testing.
2022-06-29Mantaflow: disable call to MANTA::terminateMantaflowCampbell Barton
Effectively revert [0] as it ran when freeing individual modifiers, causing a crash on exit in one of the cycles_volume_cpu tests. [0]: 6777c420dbb92523ca9c2acd1fa1f8abce98f88d
2022-06-29Benchmark: Add eevee viewport playback tests.Jeroen Bakker
This commit adds the ability to test Eevee viewport playback performance tests. Tests should be placed in `lib/benchmarks/eevee/*/*.blend`. {rBL62962} added initial test files. See https://wiki.blender.org/wiki/Tools/Tests/Performance how to set it up. To record the playback performance the test start the viewport playback, and adds a post frame change handler. This handler will go over the next steps: * Ensures the viewport is set to rendered mode. * Wait for shaders to be compiled. Utilizes `bpy.app.is_job_running` function when available (v3.3) to wait for shader compilation to finish. When not available will wait for one minute. * Draw several warmup frames * Record for 10 seconds tracking the number of frames drawn and performance counters. * When ready print the result to the console. The results will be extracted when the benchmark has run. ## Example report ``` master v3.0 v3.1 v3.2 T88219 0.0860s 0.0744s 0.0744s 0.0851s blender290-fox 1.3056s 0.8744s 0.7994s 1.2809s ``` {F13232387} Reviewed By: brecht, fclem Maniphest Tasks: T99136 Differential Revision: https://developer.blender.org/D15302
2022-06-29Sculpt: Fix backwards normals in PBVH_GRIDS raycastingJoseph Eagar
Winding order of grid quads was backwards.
2022-06-29Fix T99231: Wrong anchored mode test for smear brushJoseph Eagar
2022-06-29Cleanup(UV): Remove unused parameter (no functional changes)Chris Blackbourn
Prep for D15263
2022-06-29Cleanup(UV): Store nboundaries on pchart (no functional changes)Chris Blackbourn
Prep for D15263
2022-06-29Cleanup: formatCampbell Barton
2022-06-29Cleanup: Fix mul_v2_v2_ccw for repeated arguments (no functional changes)Chris Blackbourn
Prep for D15263
2022-06-29Mantaflow: call MANTA::terminateMantaflow on exitCampbell Barton
terminateMantaflow was never called, this leak is more of a technicality since it's only called on exit. Also make Py_Initialize/Py_Finalize optional in Pd:setup/finalize as it caused Blender to crash, finalizing Python twice. Add a patch to extern/mantaflow to keep track of changes in Blender from up-stream.
2022-06-29Cleanup: update curve_fit_nd (no functional changes)Campbell Barton
2022-06-29Cleanup: spelling in commentsCampbell Barton
2022-06-29Fix T78394: In UV Editor, UV Unwrap respects selectionChris Blackbourn
Differential Revision: D14945
2022-06-29Fix: Use distance unit for points node radius inputHans Goudey
2022-06-28Fix: Flush mode to evaluated object when exiting curves sculpt modeHans Goudey
Tagging the object for copy on write in order to change the mode on the evaluated object was already done when entering sculpt mode, it should happen when exiting sculpt mode as well. Also use the message system to tag updates of the mode property. This is commonly done for other "mode switch" operators. It's best to be consistent here, though I don't know that lacking that caused any issues.
2022-06-28Fix T98924: Skip saving selection properties for UV edge ring operatorSiddhartha Jejurkar
Oversight in rB7724251af81f. Skip saving selection properties for UV edge ring operator as it allows the operator to re-use the value that was previously set using the key-map. Reviewed By: campbellbarton Maniphest Tasks: T98924 Differential Revision: https://developer.blender.org/D15214
2022-06-28Fix Cycles assert with mix weights outside of 0..1 rangeBrecht Van Lommel
This could result in wrong skipping of SVM nodes in the graph. Now make the logic consistent with the clamping in the OSL implementation and constant folding. Thanks to Christophe Hery for finding the problem and providing the fix.
2022-06-28UI: Unhide the world mist panel if the mist pass is not enabledClément Foucault
This makes no sense to hide it since we can nowadays preview it inside the viewport even if the render pass is not enabled.
2022-06-28DRW: Curve: Fix wrong UBO alignmentClément Foucault
This was preventing correct attribute rendering with multiple attributes. Since the `CurveInfos` struct is used for data sharing between C++ and GLSL and inside a UBO it needs to obey the `std140` alignment rules which states that arrays of scalars are padded to the size of `vec4` for each array entry.
2022-06-28Cleanup: GPUShader: Fix missing space in debug messageClément Foucault
2022-06-28Cleanup: DRW: Fix misnamed argument and add more info in a function docClément Foucault
2022-06-28Cycles: enable Vega GPU/APU supportSayak Biswas
Enables Vega and Vega II GPUs as well as Vega APU, using changes in HIP code to support 64-bit waves and a new HIP SDK version. Tested with Radeon WX9100, Radeon VII GPUs and Ryzen 7 PRO 5850U with Radeon Graphics APU. Ref T96740, T91571 Differential Revision: https://developer.blender.org/D15242
2022-06-28Fix T98882: Regression: Gradient colors in a Grease Pencil material change ↵Germano Cavalcante
depending on the visibility of other objects The material ID was being wrongly passed in the shader.
2022-06-28Build: add HIP version to buildbot configurationBrecht Van Lommel
2022-06-28Build: when using Wayland, always enable EGL and disable system GLEWChristian Rauch
GLEW does not support GLX and EGL at the same time, and the distribution version is likely to have GLX. This also refactors the code so all OpenGL related CMake options are together. Differential Revision: https://developer.blender.org/D12034
2022-06-28Py API Doc: add runtime changelog generation to `sphinx_doc_gen.py`.Bastien Montagne
Optionally use `sphinx_changelog_gen.py` to dump current version of the API in a JSON file, and use closest previous one listed in given index file to create a changelog RST page for Sphinx. Part of {T97663}.
2022-06-28Py API Doc: refactor changelog generation script.Bastien Montagne
Main change is to make it use JSON format for its dump files, instead of some Python code. It also introduces an index for those API dump files, mapping a blender version to the relevant file path. This is then used to automatically the most recent (version-number wise) previous API dump to compare against current one, when generating the change log RST file. Part of {T97663}.
2022-06-28Fix frame_final_start/end strip property not setting handle positionRichard Antalik
This was a mistake in 17a773cdcee9 - I did not notice existing set function and assumed, that property set DNA directly. Both get and set functions are now available and readonly flag is removed.
2022-06-28Build: remove GLEW version checking from install_deps.shBrecht Van Lommel
Latest OpenSubdiv builds without GLEW by default, which is also what we do for precompiled libraries. So there is no need for compatibility checking with system GLEW. Additionally WITH_SYSTEM_GLEW is turned off by default for Blender, and this logic was presumably added when it was still on by default a few years ago. Also remove outdated mention of glew-mx, we use intern/glew-mx and no external library for this. Differential Revision: https://developer.blender.org/D15281
2022-06-28Cleanup: fix various typosluzpaz
Differential Revision: https://developer.blender.org/D15304
2022-06-28Install_deps: Fix several issues with TBB.Bastien Montagne
* TBB MEX version is now 2021, since this versin introduces 'oneTBB' which brings a lot of incompatibilities with previous versions. * Fix several typos and mistakes in OSD, Embree and OIDN build code that prevented proper usage of a local TBB build.
2022-06-28Fix: sampling points on mesh surface generates too many pointsJacques Lucke
2022-06-28BLI: add kdtree range search method that accepts c++ lambdaJacques Lucke
This is easier to use in C++ code compared to passing a function and user-data separately.
2022-06-28Mask editor: Always use smooth drawingSergey Sharybin
The mask is expected to be always be displayed smooth, and the option mainly existed for some legacy drivers. IF smooth drawing causes issues it should be fixed in the drawing code, not as an option in the interface. Differential Revision: https://developer.blender.org/D15266
2022-06-28Cleanup: Remove redundant theme versioning codeJulian Eisel
Since we reset the default theme for the 3.0 release, we don't need to keep these version patches around anymore. Ref D13131
2022-06-28Fix T98799: camera unselectable in camera view below a certain scalePhilipp Oeser
The camera frame (used for selection) was drawn outside the near clipping plane in those cases. This has been an issue before as seen in the following commits: - rB6e7e6832e87 - rB33d322873e6 - rB4f9451c0442 Remaining issue was that the code which ensure the frame isn't behind the near clipping plane was not taking into account the camera could be scaled (in Z). A caller of `BKE_camera_view_frame_ex` (namely `OVERLAY_camera_cache_populate`) applies scale (also on the depth) which does not play well with the way `BKE_camera_view_frame_ex` did it. Now take Z scale into account. Ref D15178
2022-06-28Fix textview selection rendering in front of textRed Mser
Selection of Python Console renders in front of the text. Since the default theme uses a low opacity selection color, it isn't obvious, but increasing alpha to 100% shows it clearly. Ref D13111
2022-06-28Cleanup: replace magic number with define for scan-code/key-code offsetCampbell Barton
2022-06-28GHOST/Wayland: avoid creating a keyboard-state each key press/releaseCampbell Barton
Instead, create keyboard two states when the keyboard layout is set (one with & one without num-lock pressed). This avoids key-press lookups having to check if num-lock exists and setting the keyboard state for key press & release events. No functional changes.
2022-06-28Fix T96170: keys mis-mapped with NeoQwertz layout under WaylandCampbell Barton
Accessing the symbols for keys with no modifiers & num-lock enabled has unintended consequences for some keyboard layouts that use this to switch layers. Resolve by restricting num-locked lookups to keys typically toggled with num-lock (key-pad home, page up/down ... etc).
2022-06-28Cleanup: group wayland event codes in their own doxy sectionCampbell Barton
Also don't pass typedef'd ints as references.
2022-06-28Fix T99202: AccentGrave key doesn't work with WaylandCampbell Barton
Implement scan-code fallback when the scan-code used for AccentGrave on US keyboards doesn't map to a key known to GHOST. Without this, shortcuts that use AccentGrave are inaccessible and the key does nothing. This matches functionality from X11, see [0]. [0]: f3427cbc981e5ad530d1a73ab4ecbf6b64751774
2022-06-28UI: add Custom properties panel to collectionsKeith Boshoff
Show a custom properties panel in the collections tab, matching other data-blocks which already support this. Reviewed by: HooglyBoogly, campbellbarton Ref D12598
2022-06-28GHOST: only use GHOST_PRINT when WITH_GHOST_DEBUG is enabledCampbell Barton
Revert part of [0] so only assert behavior is changed. [0]: 9b5dda3b07496bda28970dfd23e4951a76d0f8ed
2022-06-28Cleanup: compiler warnings, remove unused functionsCampbell Barton