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
2022-11-12Merge remote-tracking branch 'origin/blender-v3.4-release'Ray Molenkamp
2022-11-12Fix: OpenSubdiv reporting version 0.0.0 in system_info.txtRay Molenkamp
OSD Lists as 0, 0, 0 this is due to opensubdiv_capi.cc not actually including the OSD version header, so it's not getting the version define, and the code in openSubdiv_getVersionHex is really well prepared to deal with any or no version at all of OSD, catches the problem and returns 0, 0, 0 Given this file is only build when OSD is enabled we can just blindly include opensubdiv/version.h here Reviewed by: brecht Differential Revision: https://developer.blender.org/D16398
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Cleanup: add a system reference to the wayland windowCampbell Barton
Avoid relying on GHOST_ISystem::getSystem(), store the system instead.
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-12Fix window title not redrawing with Wayland/libdecorCampbell Barton
2022-11-12GHOST/Wayland: skip resizing the EGL surface unnecessarilyCampbell Barton
wl_egl_window_resize ran when the window became active/inactive for e.g.
2022-11-12Cleanup: move title into GWL_WindowCampbell Barton
Nearly all Wayland window data is stored in this struct, follow this convention so GWL_Window functions can be self contained.
2022-11-12Cleanup: move Wayland window state utilities into lower level functionsCampbell Barton
Add low level gwl_window_* functions.
2022-11-12Fix non-interactive window borders after changes to event handlingCampbell Barton
Regression in [0] causes LIBDECOR interactions not to be detected. [0]: deb8ae6bd1edb0983d9ac972b2c95090f4c5e642
2022-11-12Cleanup: use snake-case for WAYLAND utility functionsCampbell Barton
It wasn't so obvious which functions were part of the GHOST API and which system functions were utilities. This convention was already in place but not always followed.
2022-11-12GHOST/Wayland: replace roundtrip with dispatch_pendingCampbell Barton
Add a non-blocking version wrapper for wl_display_dispatch_pending. This uses roughly the same logic as Wayland_PumpEvents in SDL. Noticed this when investigating T100855. Note that performing a round-trip doesn't seem necessary from looking into QT/GTK & SDL event handling loops.
2022-11-11Fix OSL object matrix with Cycles on the GPUPatrick Mours
The OSL GPU services implementation of "osl_get_matrix" and "osl_get_inverse_matrix" was missing support for the "common", "shader" and "object" matrices and thus any matrix operations in OSL shaders using these would not work. This patch adds the proper implementation copied from the OSL CPU services. Maniphest Tasks: T101222
2022-11-11Cycles: Cache only up to 5 kernels of each type on MetalMichael Jones
This patch adapts D14754 for the Metal backend. Kernels of the same type are already organised into subdirectories which simplifies type matching. Reviewed By: brecht Differential Revision: https://developer.blender.org/D16469
2022-11-11Fix broken Cycles rendering with recent OSL versionsPatrick Mours
Commit c8dd33f5a37b6a6db0b6950d24f9a7cff5ceb799 in OSL changed behavior of shader parameters that reference each other and are also overwritten with an instance value. This is causing the "NormalIn" parameter of a few OSL nodes in Cycles to be set to zero somehow, which should instead have received the value from a "node_geometry" node Cycles generates and connects automatically. I am not entirely sure why that is happening, but these parameters are superfluous anyway, since OSL already provides the necessary data in the global variable "N". So this patch simply removes those parameters (which mimics SVM, where these parameters do not exist either), which also fixes the rendering artifacts that occured with recent OSL. Maniphest Tasks: T101222 Differential Revision: https://developer.blender.org/D16470
2022-11-10Fix abort when rendering with OSL and OptiX in CyclesPatrick Mours
LLVM could kill the process during OSL PTX code generation, due to generated symbols contained invalid characters in their name. Those names are generated by Cycles and were not properly filtered: - If the locale was set to something other than the minimal locale (when Blender was built with WITH_INTERNATIONAL), pointers may be printed with grouping characters, like commas or dots, added to them. - Material names from Blender may contain the full range of UTF8 characters. This fixes those cases by forcing the locale used in the symbol name generation to the minimal locale and using the material name hash instead of the actual material name string.
2022-11-10Merge branch 'blender-v3.4-release'Sergey Sharybin
2022-11-10Fix missing wl_display_get_error in the Wayland dynamic loaderSergey Sharybin
Some of the previous commits in Wayland related code added use of this function, but did not update the dynamic loader. This broke compilation of configurations which use dynamic loader for Wayland (which is the official way oh how Blender is built).
2022-11-10Merge branch 'blender-v3.4-release'Sergey Sharybin
2022-11-10GHOST/Wayland: report a message when there is a fatal errorCampbell Barton
Help troubleshooting T100855.
2022-11-10Cleanup: minor naming changes, make listener struct constCampbell Barton
2022-11-10Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-10Cleanup: spelling in commentsCampbell Barton
2022-11-10Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-10Cleanup: formatCampbell Barton
2022-11-10GHOST/Wayland: add wl_display_listener for debuggingCampbell Barton
Currently only used for logging to help with debugging.
2022-11-10Cleanup: compiler warnings (unused-parameter & missing-declarations)Campbell Barton
2022-11-10Cleanup: formatCampbell Barton
2022-11-09Merge branch 'blender-v3.4-release'Brecht Van Lommel
2022-11-09Fix T101669: Cycles artifacts in bump map bakingBrecht Van Lommel
After barycentric convention changes, the differentials used for bump mapping were wrong leading to artifacts with long thin triangles.
2022-11-09Fix T102257: Crash when making an Object as Effector set to Guide and trying ↵Germano Cavalcante
to scrub the timeline rB67e23b4b2967 revealed the bug. But the bug already existed before, it just wasn't triggered. Apparently the problem happens because the python code generated in `initGuiding()` cannot be executed twice. The second time the `initGuiding()` code is executed, the local python variables are removed to make way for the others, but the reference to one of the grids in a `Solver` object (name='solver_guiding2') is still being used somewhere. So an error is raised and a crash is forced. The solution is to prevent the python code in `initGuiding()` from being executed twice. When `FLUID_DOMAIN_ACTIVE_GUIDE` is in `fds->active_fields` this indicates that the pointer in `mPhiGuideIn` has been set and the guiding is already computed (does not need to be computed again). Maniphest Tasks: T102257 Differential Revision: https://developer.blender.org/D16416
2022-11-09Fix T102257: Crash when making an Object as Effector set to Guide and trying ↵Germano Cavalcante
to scrub the timeline rB67e23b4b2967 revealed the bug. But the bug already existed before, it just wasn't triggered. Apparently the problem happens because the python code generated in `initGuiding()` cannot be executed twice. The second time the `initGuiding()` code is executed, the local python variables are removed to make way for the others, but the reference to one of the grids in a `Solver` object (name='solver_guiding2') is still being used somewhere. So an error is raised and a crash is forced. The solution is to prevent the python code in `initGuiding()` from being executed twice. When `FLUID_DOMAIN_ACTIVE_GUIDE` is in `fds->active_fields` this indicates that the pointer in `mPhiGuideIn` has been set and the guiding is already computed (does not need to be computed again). Maniphest Tasks: T102257 Differential Revision: https://developer.blender.org/D16416
2022-11-09Cycles: Add basic support for using OSL with OptiXPatrick Mours
This patch generalizes the OSL support in Cycles to include GPU device types and adds an implementation for that in the OptiX device. There are some caveats still, including simplified texturing due to lack of OIIO on the GPU and a few missing OSL intrinsics. Note that this is incomplete and missing an update to the OSL library before being enabled! The implementation is already committed now to simplify further development. Maniphest Tasks: T101222 Differential Revision: https://developer.blender.org/D15902
2022-11-09Cleanup: unused argument warningCampbell Barton
2022-11-09Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-09Fix T102287: Unhandled Numpad Separator on QWERTZ under WaylandCampbell Barton
2022-11-08Cleanup: formatChris Blackbourn
2022-11-08Merge branch 'blender-v3.4-release'Brecht Van Lommel
2022-11-08Fix Cycles error with runtime compilation when there is no path to OptiX SDKGon Solo
If no OPTIX_ROOT is set, nvcc fails to compile because there is a stray "-I" in the arguments. Detect if the include path is empty and act accordingly. Differential Revision: https://developer.blender.org/D16308
2022-11-08Refactor: replace Cycles sse/avx types by vectorized float4/int4/float8/int8Brecht Van Lommel
The distinction existed for legacy reasons, to easily port of Embree intersection code without affecting the main vector types. However we are now using SIMD for these types as well, so no good reason to keep the distinction. Also more consistently pass these vector types by value in inline functions. Previously it was partially changed for functions used by Metal to avoid having to add address space qualifiers, simple to do it everywhere. Also removes function declarations for vector math headers, serves no real purpose. Differential Revision: https://developer.blender.org/D16146
2022-11-07Fix support for building with ffmpeg < 5.0Sebastian Parborg
Seems like the new audio channel api was not as backwards compatible as we thought. Therefore we need to reintroduce the usage of the old api to make older ffmpeg version be able to compile Blender. This change is only intended to stick around for two releases or so. After that we hope that most Linux distros ship ffmpeg >=5.0 so we can switch to it. Reviewed By: Sergey Differential Revision: http://developer.blender.org/D16408
2022-11-07Cycles: Apple GPU threadgroup tuningMichael Jones
This patch tunes maximum threads-per-threadgroup and threads-per-block for faster renders on Apple GPUs. Appropriate tuning is selected based on the GPU architecture (M1 or M2). We see a benchmark uplift of around 5-10% on M1 family chips. Similar uplift is expected on M2 with upcoming OS changes. (Ref T101931) Reviewed By: brecht Maniphest Tasks: T101931 Differential Revision: https://developer.blender.org/D16299
2022-11-05Merge branch 'blender-v3.4-release'Campbell Barton
2022-11-05Cleanup: quiet unused argument warningCampbell Barton