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-02Cleanup: spelling in commentsCampbell Barton
2022-11-01Fix T102194: unhandled number keys on AZERTY layout under WaylandCampbell Barton
Support layouts such as AZERTY where the shift key is held for number keys. Text entry remains unchanged but these keys now activate shortcuts as expected. This matches a fix in X11 for the same problem: T47228.
2022-11-01Cleanup: spelling in commentsCampbell Barton
2022-11-01Cleanup: disambiguate naming for Wayland surfacesCampbell Barton
Name surfaces for their use.
2022-11-01GHOST/Wayland: support for multiple seats (one active seat at a time)Campbell Barton
This isn't full multi-seat support, instead set the active seat using pointer/tablet & keyboard enter handlers. This means that seats beside the first aren't prevented from having their events handled.
2022-10-28Cycles: add Equiangular Cubemap Face camera projectionDamian Trebilco
This can be used for example for VR video formats that use this projection instead of perspective projection for cubemap faces. Differential Revision: https://developer.blender.org/D13525
2022-10-28Cleanup: formatCampbell Barton
2022-10-28Cleanup: quiet unused argument warnings and minor changes in GHOSTCampbell Barton
2022-10-28Fix error in leaving the tablet pointer set under WaylandCampbell Barton
Missed clearing the tablet pointer after updating removing the tablet manager.
2022-10-28GHOST/Wayland: code-commentsCampbell Barton
Note issues with track-pad event handling, add some other notes too.
2022-10-28Fix failure to clear DND in_use in rare cases under WaylandCampbell Barton
If opening a pipe failed, 'data_offer->dnd.in_use' wasn't cleared. Avoid early return where it duplicates logic in an error prone way.
2022-10-28Cleanup: use common prefix for static ghost/wayland variablesCampbell Barton
File level static variable names weren't well distinguished from others. Use `ghost_wl_` prefix for static variables.
2022-10-28GHOST/Wayland: improve code-commentsCampbell Barton
2022-10-28Cleanup: use plain 'char *' for mime types in GHOST/WaylandCampbell Barton
There wasn't much advantage in using C++ native types as all Wayland API's deal with C strings.
2022-10-28Cleanup: move GWL_DataOffer in_use to the 'dnd' structCampbell Barton
It wasn't clear that this is only used for drag & drop, also don't use an atomic type as all access is guarded by the drag & drop mutex.
2022-10-28GHOST/Wayland: postpone reading from the clipboard until neededCampbell Barton
A copy of the clipboard was always being, changes would re-read it. Now read the clipboard on request. This avoids having to keep a copy of the clipboard in memory as well as the need to keep a thread to running to read the clipboard for each data-offer. To prevent a deadlock when pasting from Blender's own clipboard. - Sending the clipboard (using write(..)) runs in a background thread. - Reading the clipboard uses a thread that performs round-trips to the Wayland server to prevent until the read is complete. This is an update to [0] that resolves the deadlock. [0]: c03838dbc8cc4a85cfc93914493a0f1562a53366
2022-10-28GHOST/Wayland: unlock clipboard mutex on failureCampbell Barton
When the Wayland pipe can't be opened, don't leave the mutex locked. Also skip checking wl_data_device_manager when reading from the primary clipboard.
2022-10-28Cycles: fix up logic in oneAPI devices filteringXavier Hallade
CYCLES_ONEAPI_ALL_DEVICES environment variable wasn't working as intended after 305b92e05f748a0fd9cb62b9829791d717ba2d57.
2022-10-27Fix T102085: X11 Startup crashAnton Raves
wl_registry_destroy does not enjoy being fed a null pointer. Added a null check to keep it out of trouble.
2022-10-27GHOST/Wayland: replace deferred registration with an update callbackCampbell Barton
There were two issues caused by deferred registration (added by [0]), one crash on startup (T102075), another unreported issue with the GLX/EGL context failing to initialize. Unfortunately I'm unable to reproduce the errors but it seems likely deferring interface registration is not well supported so this commit uses an alternative solution to some interfaces depending on others for initialization. Instead of relying on the order of registration, a separate "update" callback has been added which is called after binding interfaces. This has the advantage that it can be called when adding/removing interfaces at run-time to avoid the dangling pointers being left in locally allocated structures. In practice adding/removing interfaces happens so rarely (only with "outputs" as far as I'm aware) that this benefit is theoretical at the moment. This should resolve T102075. [0]: 9fe9705bc0af9d881905d75957c8dd467f8c8cb3
2022-10-26Cycles: List Level-Zero in oneAPI device requirements in the UI on LinuxXavier Hallade
Intel documentation for Ubuntu 22.04 does list all runtime components needed by the driver and oneAPI Cycles device but end-users getting drivers from (other) sources can easily end-up missing required Level-Zero Loader and struggle root causing what's wrong in their system. Calling this requirement out in the UI will hopefull help them. oneAPI Level-Zero incl. Loader: https://github.com/oneapi-src/level-zero Common package names: level-zero, level-zero-loader
2022-10-26Cycles: use packed float3 back for oneAPIXavier Hallade
This fixes a 15% performance regression silently introduced by 79ab76e156d4bde937335be784cdf220294600d5 that aligned the compact float3 on 16 bytes for oneAPI. Current change is minimalist, there are further cleanup opportunities such as removing packed_float3 definition for oneAPI but for some reason, it cuts the recovered speedup in half, so we're starting with this small fix for now. Reviewed by: brecht Differential Revision: https://developer.blender.org/D16340
2022-10-26Fix T101790: MNEE caustic settings are not visible in the UI when using MetalMichael Jones
This patch fixes T101790 by adding a macOS version check for deciding whether to show the caustics settings in the UI (MNEE kernels don't compile on macOS < 13.0) Reviewed By: brecht Maniphest Tasks: T101790 Differential Revision: https://developer.blender.org/D16339
2022-10-26Revert "GHOST/Wayland: postpone reading from the clipboard until needed"Campbell Barton
This reverts commit c03838dbc8cc4a85cfc93914493a0f1562a53366. Pasting from Blender's own clipboard locked the process. This needs furhter investigation.
2022-10-26GHOST/Wayland: postpone reading from the clipboard until neededCampbell Barton
A copy of the clipboard was always being, changes would re-read it. Now read the clipboard on request. This avoids having to keep a copy of the clipboard in memory as well as the need to keep a thread to running to read the clipboard for each data-offer.
2022-10-26Cleanup: remove GWL_RegisteryAdd_Params.wl_registryCampbell Barton
No longer needed now GWL_Display holds a reference to the registry.
2022-10-26GHOST/Wayland: support device add/removal at runtimeCampbell Barton
Keep the registry listener active at runtime, now plugging/unplugging monitors at run-time is detected and the associated data stored by Blender is added/removed as well. Previously all interfaces were detected at startup, afterwards no changes were supported.
2022-10-26GHOST/Wayland: use a predictable order for interface registrationCampbell Barton
Defer interface registration so all known interfaces can be called in the order defined by the array of supported types. Without this, the compositor defined the order of registration so it wasn't possible to rely on registration functions to depend on other interfaces. This caused initialization for 'seats' to be moved out of the register callback to ensure multiple interfaces were initialized. This isn't good for readability or maintenance since it meant the add/remove callbacks didn't act on matching data.
2022-10-25Fix window flickering when moving windows between monitors in WaylandCampbell Barton
Moving widows between monitors with different scale set could flicker in a feedback loop because the bounds of the window resizing could cause the bounds of the windows to overlap different monitors. Now the window is resized immediately, instead of letting the change to the windows surface scale resize the window.
2022-10-25Fix Cycles build error on 32bit x86Brecht Van Lommel
2022-10-25Fix T102048: Tablet cursor remains hidden under KDE/WaylandCampbell Barton
2022-10-25GHOST/Wayland: swap tablet middle/right mouse buttonsCampbell Barton
There looks to be an inconsistency between Gnome/KDE here, match KDE and Gnome applications under X11 (even XWayland) by making the button closest to the nib MMB, and the other button RMB.
2022-10-25GHOST/Wayland: store fractional scaling in each window instead of DPICampbell Barton
This makes it possible to access the fractional scaling for a window, there is no need to store the DPI which can be returned by getDPIHint().
2022-10-25Cleanup: move singleton pointers into the systemCampbell Barton
Avoid top level global pointers, remove the window_manager pointer and move the clipboard mutex along side the clipboard data. Also skip updating window DPI if the window doesn't use the output that changed it's scale.
2022-10-25Cleanup: move ghost/wayland local methods after type declarationsCampbell Barton
Also correct prefix naming.
2022-10-25Fix T82412: Space-mouse not registering (WIN32)Campbell Barton
Using the 3DConnexion Universal Wireless Receiver on MS-Windows caused a different ID to be reported. While I'm not sure of the cause of this, adding the ID doesn't conflict with other devices and fixes the problem.
2022-10-25Correct naming in 97414fb484fe37b8da69a2b570a659535bbf2a0fCampbell Barton
2022-10-25GHOST/Wayland: support adding/removing global objects at runtimeCampbell Barton
Share logic for adding/removing global objects and freeing them on exit. Refactor object registration add/remove into an array of callbacks to localize logic into generic functions for each kind of interface. Also corrects own error where the primary clipboard manager wasn't being destroyed on exit.
2022-10-24Cycles: Metal integrator state size tuningMichael Jones
This patch tunes the integrator state sizing for Metal (`num_concurrent_states` and `num_concurrent_busy_states`). On all GPUs architecture, we adjust the busy:total states ratio to be 1:4 which gives better rendering performance than the previous 1:16 ratio (independent of total state count). This gives a small performance uplift (e.g. 2-3% on M1 Ultra). Additionally for M2 architectures, we double the overall state size if there is available headroom. Inclusive of the first change, we can expect uplift of close to 10% in future, as this results in larger dispatch sizes and minimises work submission overheads. In order to make an accurate determination of available headroom, we defer the calculation of `num_concurrent_states` and `num_concurrent_busy_states` until the time of integrator state allocation (i.e. after all of the scene data has been allocated). We also refactor `alloc_integrator_soa` to calculate an *exact* single-state-size in a first pass, right before allocating the integrator SoA buffers in a second pass. Reviewed By: brecht Differential Revision: https://developer.blender.org/D16313
2022-10-23GHOST: expand GHOST_PRINT/PRINTF without WITH_GHOST_DEBUGCampbell Barton
It was too easy accidentally break builds without WITH_GHOST_DEBUG enabled because the arguments were ignored. Now they are expanded in an `if (0) {...}` block, so invalid expressions result in errors.
2022-10-23Fix build error when WITH_GHOST_DEBUG is enabledCampbell Barton
2022-10-23GHOST/Wayland: support building with older versions of pointer-gesturesCampbell Barton
Missing support for the hold gesture broke building on the build-bot. Since this gesture was only logged, it's harmless to leave it off.
2022-10-23Fix crash on exit when background rendering in waylandCampbell Barton
Disable libdecor Wayland requirement which would use an X11 fallback. While the crash could be investigated, using libdecor at all makes no sense in background mode.
2022-10-22GHOST/Wayland: multi-touch gesture supportCampbell Barton
Add support for zoom & rotate gestures, hold and swipe may be used in the future although swipe maps to 2D smooth-scroll for Gnome & KDE. Tested to work with Apple track-pad & Wacom tablet on Gnome & KDE.
2022-10-22Cleanup: use wl_/wp_ prefix to match native Wayland typesCampbell Barton
2022-10-22GHOST/Wayland: support changing seat capabilities at run-timeCampbell Barton
2022-10-22Video rendering: FFMpeg AV1 codec encoding supportStephen Seo
Previously, the Blender video renderer did not have support for encoding video to AV1 (not to be confused with the container AVI). The proposed solution is to leverage the existing FFMpeg renderer to encode to AV1. Note that avcodec_find_encoder(AV_CODEC_ID_AV1) usually returns "libaom-av1" which is the "reference implementation" for AV1 encoding (the default for FFMpeg, and is slow). "libsvtav1" is faster and preferred so there is extra handling when fetching the AV1 codec for encoding such that "libsvtav1" is used when possible. This commit should only affect the options available for video rendering, which includes the additional AV1 codec to choose from, and setting "-crf". Also note that the current release of FFMpeg for ArchLinux does not support "-crf" for "libsvtav1", but the equivalent option "-qp" is supported and used as a fallback when "libsvtav1" is used (as mentioned here: https://trac.ffmpeg.org/wiki/Encode/AV1#SVT-AV1 ). (Actually, both "-crf" and "-qp" is specified with the same value in the code. When a release of FFMpeg obtains support for "-crf" for "libsvtav1" is released, the code shouldn't be needed to change.) The usage of the AV1 codec should be very similar to the usage of the H264 codec, but is limited to the "mp4" and "mkv" containers. This patch pertains to the "VFX & Video" module, as its main purpose is to supplement the Video Sequencer tool with the additional AV1 codec for encoded video output. Differential Revision: https://developer.blender.org/D14920 Reviewed By: sergey , ISS, zeddb
2022-10-21Build: add option to error when features can't be enabledBrecht Van Lommel
This is to help ensure buildbot builds are correct, while still gracefully disabling features in user/developer builds. * Add WITH_STRICT_BUILD_OPTIONS to give an error when features can't be enabled due to missing libraries or other reasons. Add new macro set_and_warn_library_found used everywhere features were being automatically disabled. * Remove code from Windows and macOS for various libraries that would automatically disable features. set_and_warn_library_found could be used here also, but we are generally assuming the precompiled libraries are complete and only test for availability when libraries are just added. Differential Revision: https://developer.blender.org/D16104
2022-10-21Fix missing OpenMP in Linux buildsSergey Sharybin
OpenSubdiv OpenMP detection was interfering, but we don't use it there anymore so just remove that code.
2022-10-21Avoid re-compilation of oneAPI AoT kernels when configuration changesSergey Sharybin
Buildbot infrastructure relies on the fact that it can enable and disable `WITH_CYCLES_<COMPUTE>_BINARIES` without affecting speed of incremental builds. This allows buildbot to skip GPU kernels when doing CI regression tests which do not need GPU kernels, as well as it allows to move GPU kernels compilation to a separate step where all the resources are available to the GPU kernel builders. For the oneAPI compute enabling and disabling AoT kernels has much higher implications due to the kernels being a part of the device implementation from the build target perspective. This change makes it so different target names are used for JIT and AoT configurations, which allows CMake to more fully benefit from "caching" the compiled result. The end goal of this change is to make it so sequential build of the same code base on the buildbot happens super fast, Blender binary still needs to be re-linked when the AOT of oneAPI option is toggled, but that's already the case in the buildbot due to the WITH_BUILDINFO. Differential Revision: https://developer.blender.org/D16312