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-10-20Cycles: replace (tm) with unicode equivalent in UIXavier Hallade
It was already done for (TM) which is present in some GPU names on Windows. Names on Linux ended up using (tm) instead: https://gitlab.freedesktop.org/mesa/mesa/-/commit/91fec2657a0dcf9bc2e6d080d84a114ecde44382
2022-10-20Cleanup: compiler warningsBrecht Van Lommel
2022-10-20Fix missing free in 8a43bfd8fd8d08438c5cc58befdf3e661aa17297Campbell Barton
2022-10-20GHOST/Wayland: refactor copy/paste buffer storageCampbell Barton
- Improve reporting when reading a file descriptor into a buffer fails, also check for failure to allocate memory. - Store buffers with size in a simple struct. - Use shared utility functions for simple buffer operations.
2022-10-20GHOST/Wayland: primary clipboard supportCampbell Barton
Match X11's primary clipboard support (typically used for MMB to paste the previous selection).
2022-10-20GHOST/Wayland: skip redundant strlen() sending the clipboardCampbell Barton
2022-10-20Cleanup: correct prefix for internal wayland utility functionCampbell Barton
2022-10-20Cleanup: formatCampbell Barton
2022-10-20GHOST/Wayland: correct assert from recent commitCampbell Barton
Error in [0], only clear the stored clipboard data source pointer if it matches the data being cleared. [0]: 09e3ea49dbbec15a8fcc79cc609f6dc8c13bc91f
2022-10-20Fix T94136: Cycles: No Hair Shadows with Transparent BSDFLukas Stockner
2022-10-20Fix T93382: Blender still generates subsurface render passesLukas Stockner
In T93382, the problem was that the Blender-side rendering code was still generating the subsurface passes because the old render pass flags were set, even though Cycles doesn't generate them anymore. After a closer look, it turns out that the entire hardcoded pass creation code can be removed. We already have an Engine API function to query the list of render passes from the engine, so we might as well just call that and create the returned passes. Turns out that Eevee already did this anyways. On the Cycles side, it allows to deduplicate a lot of `BlenderSync::sync_render_passes`. Before, passes were defined in engine.py and in sync.cpp. Now, all passes that engine.py returns are created automatically, so sync.cpp only needs to handle a few special cases. I'm not really concerned about affecting external renderer addons, since they already needed to handle the old "builtin passes" in their Engine API implementation anyways to make them show up in the compositor. So, unless they missed that for like 10 releases, they should not notice any difference. Differential Revision: https://developer.blender.org/D16295
2022-10-20GHOST/Wayland: update code comment for Gnome-Shell workaroundCampbell Barton
Note that the bug has been fixed upstream.
2022-10-20GHOST/Wayland: clear data source pointer when canceledCampbell Barton
The external cancel callback destroyed the data source but didn't clear the pointer. While this didn't cause problems, avoid keeping references freed pointers.
2022-10-20Cleanup: use 'wl_' prefix for data_sourceCampbell Barton
Without this the local and wayland native types could be mixed up.
2022-10-19Fix macOS build error after recent changes to enable Intel GPUsBrecht Van Lommel
This will only work once we upgrade to the macOS 13 SDK. Ref D16253
2022-10-19Cycles: Allow Intel GPUs under MetalMorteza Mostajab
Known Issues: - Command buffer failures when using binary archives (binary archives is disabled for Intel GPUs as a workaround) - Wrong texture sampler being applied (to be addressed in the future) Ref T92212 Reviewed By: brecht Maniphest Tasks: T92212 Differential Revision: https://developer.blender.org/D16253
2022-10-19Cycles: oneAPI: fix clean Windows ninja buildsXavier Hallade
Previously, a first build using ninja would throw "ninja: error: 'intern/cycles/kernel/cycles_kernel_oneapi.lib', needed by 'bin/blender.exe', missing and no known rule to make it".
2022-10-19Cycles: oneAPI: preload kernels only when not using prebuilt binariesXavier Hallade
sycl::build triggers compilation even if prebuilt binaries are available, we'll have to find a better way in this case.
2022-10-19Cycles: oneAPI: include sycl/sycl.hpp instead of CL/sycl.hppXavier Hallade
Since SYCL 2020 API, sycl/sycl.hpp is the way.
2022-10-19Cycles: oneAPI: fix check_usm for debug buildsXavier Hallade
2022-10-19Cycles: oneAPI: fix MSVC_TOOLS_DIR for some build environmentsXavier Hallade
MSVC Tools version doesn't match MSVC Redist version on some systems and it's not populated when using Ninja outside of Visual Studio shell, trying another way.
2022-10-19Blender: Add command line argument to switch gpu backends.Jeroen Bakker
Add command line argument to switch gpu backend. Add `--gpu-backend` option to override the gpu backend selected by Blender. Values for this option that will be available in releases for now are: * opengl: Force blender to select OpenGL backend. During development and depending on compile options additional values can exist: * metal: Force Blender to select Metal backend. When this option isn't provided the internal logic for GPU backend selection will be used. Note that this is at the time of writing the same as always selecting the opengl backend. Reviewed By: fclem, brecht, MichaelPW Differential Revision: https://developer.blender.org/D16297
2022-10-19GHOST/Wayland: invert touch-pad scrollingCampbell Barton
This should use the system preference for scroll direction eventually, for now default to a down-motion scrolling down (matching GTK & QT).
2022-10-19GHOST/Wayland: only prioritize discrete scroll for mouse wheel eventsCampbell Barton
Smooth & discrete scrolling may both be set, instead of always prioritizing discrete, use discrete scrolling when the source is a mouse wheel, otherwise prioritize smooth scrolling.
2022-10-19Cleanup: CMake include pathsCampbell Barton
Remove redundant separators & redundant references to parent paths.
2022-10-19Fix error in 30d9a6245f892492188318e92b85083ef8b301f2Campbell Barton
X/Y for mouse wheel events was unintentionally flipped.
2022-10-19GHOST/Wayland: support high resolution 2D track-pad scroll eventsCampbell Barton
These events are interpreted as MOUSEPAN by Blender. Tested with a Wacom Intuos5. This isn't full touch support which is needed to support gestures such as Swipe, Rotate .. etc.
2022-10-19GHOST/Wayland: add listener for touch events (no touch support yet)Campbell Barton
Currently unused as my tablet isn't generating touch events. This may be useful for development as touch events are logged.
2022-10-19Cleanup: remove NDOF_BUTTON_NONE from the range of usable buttonsCampbell Barton
This is used to represent unknown state, so there is no need to be able to store it's pressed state.
2022-10-19Cleanup: use '_' suffix for private members for NDOF ManagerCampbell Barton
2022-10-19GHOST/NDOF: various minor changes to NDOF managerCampbell Barton
- Use logging for NDOF device output (this removes printing on startup buy default). - Use `ndof_` prefix for button maps. - Use full sentences.
2022-10-19Cleanup: remove the last button from NDOF button enum valuesCampbell Barton
This is only used for comparison, no need to make it part of the enum.
2022-10-19Fix T101866: Incorrect buttons for space-mouse enterpriseCampbell Barton
Use key from spacenavd's wiki. Also add keys: ENTER, DELETE, TAB, SPACE & Views 1-3.
2022-10-18Fix T101529: Blender crashes when using Path GuidingSebastian Herholz
2022-10-18NDOF: use logging for GHOST so users can enable event loggingCampbell Barton
Previously this was only available as a build options, making it difficult to get user feedback when NDOF events didn't work as expected. Now logging can be enabled with: blender --log "ghost.ndof.*" --log-level 2 --log-show-basename
2022-10-17Fix T101850: Cycles DDS oversaturation when alpha is in useAras Pranckevicius
DDS files coming through OIIO needed a similar treatment as TGA in T99565; just for DDS OIIO just never set the "unassociated alpha" attribute. Fixes T101850. Reviewed By: Brecht Van Lommel Differential Revision: https://developer.blender.org/D16270
2022-10-17Fix T99565: Cycles reading TGA files with alpha different than BlenderBrecht Van Lommel
Thanks to Lukas for tracking down the cause in OIIO.
2022-10-17Cleanup: correct doc-string & remove unused defineCampbell Barton
Minor edits to recent commits.
2022-10-17Cleanup: renaming GHOST/Wayland functions & private membersCampbell Barton
- Use `_` suffix for private members. - Use `wl_` prefix for Wayland native types to help distinguish them from local types. - Replace single character names `d` & `w` with `display` `window`. - Rename `selection` to `clipboard`. Using the primary selection as a clipboard is a separate and as yet unsupported feature.
2022-10-17Cleanup: replace BLI_join_dirfile with BLI_path_joinCampbell Barton
These functions are almost identical, the main difference being BLI_join_dirfile didn't trim existing slashes when joining paths however this isn't an important difference that warrants a separate function.
2022-10-17BLI_path: remove trailing NULL argument to BLI_path_joinCampbell Barton
Using varargs had the disadvantages, replace with a macro which has some advantages. - Arguments are type checked. - Less verbose. - Unintended NULL arguments would silently terminate joining paths. - Passing in a NULL argument warns with GCC.
2022-10-17Cycles: Fix floor intrinsic for ARM NeonLukas Stockner
2022-10-16Fix T98672: Noise texture shows incorrect behaviour for large scalesLukas Stockner
This was a floating point precision issue - or, to be more precise, an issue with how Cycles split floats into the integer and fractional parts for Perlin noise. For coordinates below -2^24, the integer could be wrong, leading to the fractional part being outside of 0-1 range, which breaks all sorts of other things. 2^24 sounds like a lot, but due to how the detail octaves work, it's not that hard to reach when combined with a large scale. Since this code is originally based on OSL, I checked if they changed it in the meantime, and sure enough, there's a fix for it: https://github.com/OpenImageIO/oiio/commit/5c9dc68391e9 So, this basically just ports over that change to Cycles. The original code mentions being faster, but as pointed out in the linked commit, the performance impact is actually irrelevant. I also checked in a simple scene with eight Noise textures at detail 15 (with >90% of render time being spent on the noise), and the render time went from 13.06sec to 13.05sec. So, yeah, no issue.
2022-10-14Fix wrong Cycles default radius for motion blurred point cloudsBrecht Van Lommel
Missing from recent commit to change the default in a6db2c2.
2022-10-14Cycles: oneAPI: Make test kernel more representativeNikita Sirgienko
Test kernel will now test functionalities related to kernel execution with USM memory allocations instead of with SYCL buffers and accessors as these aren't currently used in the backend.
2022-10-14Fix T101805: Blender icons doesn't show in GNOME 43Campbell Barton
Use an app_id that matches the naming for the `.desktop` file distributed with Blender. Follow up to T101779.
2022-10-13Cycles: use one instance of oneAPI gpu compiler by defaultNikita Sirgienko
This change removes CMake code for automatic calculation of the number of offline device compiler instances, to hand over control to developers instead as it incurs a rather large memory usage with around 8GB per instance at peak. Use SYCL_OFFLINE_COMPILER_PARALLEL_JOBS CMake variable to configure it.
2022-10-13Cleanup: Fixed some warningsWerner, Stefan
Some unused parameters were left after changing the oneAPI device code to be a direclty linked shared library.
2022-10-13Fix T101776: wrong logic for GLX setSwapIntervalCampbell Barton
Regression in 93e4b15767cf958d5a07ba6acce25438f244bf22.
2022-10-13Fix T101779: Incorrect app_id on WaylandCampbell Barton
Using the title as the app_id prevented the proper icon being used under KDE-Plasma.