Commit Graph

4155 Commits

Author SHA1 Message Date
Ray Molenkamp
097531ccbf data_to_c: CMake: Speed-up data_to_c
This moves the logic to create the parent folder to data_to_c itself
rather than having cmake do it, preventing several thousand cmake instances
to be started.

see pr#141404 for details/benchmarks

Pull Request: https://projects.blender.org/blender/blender/pulls/141404
2025-07-15 02:08:14 +02:00
Campbell Barton
5dd160c39c Cleanup: indentation in cmake, sort files 2025-07-10 00:40:42 +00:00
Hans Goudey
13f32fdf6c Merge branch 'blender-v4.5-release' 2025-07-08 10:14:45 -04:00
Thomas Dinges
043ed61a02 Release: Update license info and regenerate license.md for 4.5. 2025-07-08 16:01:21 +02:00
Sebastian Parborg
8153b975a7 Merge branch 'blender-v4.5-release' 2025-07-07 18:33:12 +02:00
Sebastian Parborg
7f1529dee0 install_linux_packages: Bump with the 4.5 library changes
See #136540 for details
2025-07-07 18:32:51 +02:00
Ray Molenkamp
81e862140f Deps_builder: pydantic 2.11.7
As requested by @dr.sybren and approved by the admins

Also pydantics deps :

annotated-types 0.7.0
pydantic-core 2.33.2
typing-extensions 4.14.0
typing-inspection 0.4.1

these are installed as binary packages agreed upon with the admins

versions determined by just pip installing it and seeing what it dragged in.

as some of these are binary packages that will differ per platform, there will
be a per platform hash for some packages now unfortunately

Pull Request: https://projects.blender.org/blender/blender/pulls/140434
2025-07-04 15:25:17 +02:00
Jeroen Bakker
41e93e3d9b Merge branch 'blender-v4.5-release' 2025-06-23 07:58:03 +02:00
Jeroen Bakker
3a4c4c88fa Fix #139882: Vulkan/USD: Crash on AMD GPUs
When USD sends work to the GPU (dispatch) incorrect datatype conversions
can send incorrect vulkan commands. This happens on AMD GPUs. This PR
will patch USD to limit the max allowed limit. A better solution would
be to only use uint32_t in this function, but there is no `GfVec3u` data
type and I didn't want to do to many changes.

![image.png](/attachments/642bd3d5-c6b6-4e1a-be1c-be847e6893bd)

**TODO**

- [x] Validate with @ZedDB that this compiles and solves all the issues
- [x] Add other platform maintainers as reviewers. This is a Windows + Linux issue.
- [ ] Rebuild the USD library including this patch.

Pull Request: https://projects.blender.org/blender/blender/pulls/140102
2025-06-23 07:55:17 +02:00
Sergey Sharybin
29cab98b7f Merge branch 'blender-v4.5-release' 2025-06-20 17:26:31 +02:00
Sergey Sharybin
963d23b0de Make update: Tweak logic for the LFS fallback
Check for both git.b.o and projects.b.o pars of the URL.
The LFS objects should be able to be fetched from either
of those domains.

Pull Request: https://projects.blender.org/blender/blender/pulls/140647
2025-06-20 17:26:15 +02:00
Campbell Barton
05631085f8 Cleanup: spelling in comments (make check_spelling_*) 2025-06-19 11:40:00 +10:00
Sergey Sharybin
6af1afa27f Merge branch 'blender-v4.5-release' 2025-06-17 17:36:02 +02:00
Sergey Sharybin
ab4c8853ee Make update: Automatically switch to git.blender.org URLs
Ref #140121

Pull Request: https://projects.blender.org/blender/blender/pulls/140538
2025-06-17 17:34:28 +02:00
Jonas Holzman
53228d48be Merge branch 'blender-v4.5-release' 2025-06-16 08:48:11 +02:00
Jonas Holzman
918db88a34 Deps: macOS: Prevent accidental linking to system-wide libraries for certain deps
On the macOS deps builder, if certain libraries were installed
system-wide using Homebrew, they could be prioritized during the
linking of dependencies over our own versions, causing breakages
when running the built libraries on other systems.

For OpenColorIO, homebrew Imath could be linked if installed.
For TIFF (& libjpeg as a transitive dep), homebrew libdeflate
could be linked if installed.

This commit fixes both of these issues by directly specifying the
library path to prevent the linker from wrongly inferring it to a
system-wide path.
2025-06-16 08:44:43 +02:00
Campbell Barton
9422e4ddcf CMake: exclude "-Wextra" when removing strict flags
Having "extra" warnings caused too many warnings in areas
not actively maintained by Blender developers
(./extern/ and some of ./intern/).
2025-06-13 10:55:27 +10:00
Campbell Barton
8c6eea4a2a CMake: exclude "-Wextra" when removing strict flags
Having "extra" warnings caused too many warnings in areas
not actively maintained by Blender developers
(./extern/ and some of ./intern/).
2025-06-13 00:52:37 +00:00
Aras Pranckevicius
5ad6d42c83 IO: Remove Collada import/export
Removes Collada import/export (has been deprecated since 4.2).

Pull Request: https://projects.blender.org/blender/blender/pulls/139337
2025-06-06 08:38:57 +02:00
Brecht Van Lommel
c2a2d1af1b Merge branch 'blender-v4.5-release' 2025-06-04 19:25:20 +02:00
Brecht Van Lommel
0add3f31a2 Cycles: Bump OptiX minimum and release version to 8.0.0
This requires a minimum driver version of 535, however most devices
were already requiring 570 due to the CUDA toolkit version.

The update is required to be able to use an API function for correct
stack size calculation.

Code for older API versions has been removed.

Fix #138185: OSL custom camera errors with OptiX

Pull Request: https://projects.blender.org/blender/blender/pulls/139801
2025-06-04 19:24:21 +02:00
Bastien Montagne
ec64e9cb86 Merge branch 'blender-v4.5-release' 2025-06-04 18:20:20 +02:00
Bastien Montagne
3a47bd7e5a Fix #139810: Missing git lfs checkout in make update.
When binary files managed by git-lfs are not hosted by the main source
repo (e.g. when using the github mirror), the fall-back repo set up by
`lfs_fallback_setup` does fetch the files, but the follow-up call to
`git pull` in `work_tree_update` does not check them out.

This commit simply adds an extra `git lfs checkout` command there.

Pull Request: https://projects.blender.org/blender/blender/pulls/139825
2025-06-04 18:19:25 +02:00
Brecht Van Lommel
e79fcb4f56 Merge branch 'blender-v4.5-release' 2025-06-04 16:14:05 +02:00
Brecht Van Lommel
2c948b873e Build: Make libraries compile on Linux ARM64 again
NASM is an x86 assembler, doesn't work on ARM.
2025-06-04 16:10:37 +02:00
Thomas Dinges
f224dbccce Revert "Release: Update 4.5 branch to beta"
This reverts commit ea5b1f7527.
2025-06-04 14:14:58 +02:00
Thomas Dinges
ea5b1f7527 Release: Update 4.5 branch to beta
Splash by Blender Studio
2025-06-04 14:10:17 +02:00
Campbell Barton
6a1fa176ef Cleanup: spelling in comments & duplicate terms (check_spelling.py)
Also minor clarification in doc-string.
2025-06-04 01:51:29 +00:00
Sebastian Parborg
40a7e1abb4 Build: Remove features from blosc that we don't use
Seems like only lz4 is used by openvdb. The zstd support were causing
runtime issues because of version mismatches with our other libraries.

In addition to this, blosc doesn't seem to properly link to static
libraries. The resulting static library has undefied symbols in it from
both zlib and zstd. This wasn't caught before as openvdb links to zlib.

Pull Request: https://projects.blender.org/blender/blender/pulls/139792
2025-06-03 18:13:40 +02:00
chunfeng_tsin-2
89622f1f12 Fix: inconsistent directory path in make.bat
Add missing trailing backslash to BLENDER_DIR path in git submodule
update command to match the formatting used elsewhere in the script.

This prevents the following error when python is not found during
the update:

cannot change to .. submodule update lib/windows_x64': Invalid argument

Pull Request: https://projects.blender.org/blender/blender/pulls/139616
2025-06-03 15:49:07 +02:00
Hans Goudey
77b14f2dcb Cleanup: Grammar: Fallback vs. fall back
The former is a noun or adjective, the latter is a verb.
2025-06-02 17:13:56 -04:00
Sebastian Parborg
2db9bd4bde Rocky8: Add new library requirement for weston in the install script. 2025-06-02 12:14:53 +02:00
Sebastian Parborg
c35872a9b3 Build: DPCPP, don't build tests as they are not needed
They also try to use explicitly disabled libraries, so it also leads to
build failures.
2025-06-02 12:14:53 +02:00
Sergey Sharybin
38a14d7eb4 Cycles: Use HIP SDK 6.4.0 on Linux
It seems to be fixing an issue rendering the junkshop file on RDNA4 GPUs.
Tested on Ubuntu 22.04 and 9070 XT GPU.

The downside of this change is the curve intersection in HIP-RT being
slower (figures are a bit scattered, but average to ~10%). This seems
to be caused by compiler resolving function inlines and spilling
differently. Quite unfortunate, but it is better to solve known crashes.
There might still be time to look into the performance topic during the
Beta period.

Ref #136143

Pull Request: https://projects.blender.org/blender/blender/pulls/138981
2025-05-30 16:32:01 +02:00
Hans Goudey
91803e130f Cleanup: Grammar: Fix uses of "for e.g."
e.g. stands for "exempli gratia" in Latin which means "for example".
The best way to make sure it makes sense when writing is to just expand
it to "for example". In these cases where the text was "for e.g.", that
leaves us with "for for example" which makes no sense. This commit fixes
all 110 cases, mostly just just replacing the words with "for example",
but also restructuring the text a bit more in a few cases, mostly by
moving "e.g." to the beginning of a list in parentheses.

Pull Request: https://projects.blender.org/blender/blender/pulls/139596
2025-05-29 21:21:18 +02:00
Hans Goudey
5747f839e8 Cleanup: Grammar: Fix uses of "it's own" 2025-05-29 14:41:20 -04:00
Ray Molenkamp
0b6fd93069 libs: move wintab out of the lib dir into /extern
Almost all content in the libdir we can regenerate, wintab however
is not one of them, and if you generate a new lib folder it's one
of the things you have to manually copy back into place.

this PR moves it out of the libdir and into /extern

Pull Request: https://projects.blender.org/blender/blender/pulls/128873
2025-05-29 00:52:57 +02:00
Ray Molenkamp
b178a0b298 deps: Bump zstd to 1.5.6
Otherwise the python bindings throw an error while
loading.
2025-05-28 13:57:59 -06:00
Ray Molenkamp
5c98be4940 deps: Fix typo in DPCPP_SPIRV_HEADERS_FILE
caused a build error due to a hash mismatch with a previous
copy of this file I had.
2025-05-28 10:49:55 -06:00
Sebastian Parborg
eb96c2dfb3 Build: Enable Vulkan in USD (no Vulkan SDK)
After some discussion with Brecht and Jeroen, it was decided to use an upstream patch from openusd ([from here](https://github.com/PixarAnimationStudios/OpenUSD/pull/3603)) so we could use the usual vulkan libraries and not the Vulkan SDK.

I did not port Ray's Windows changes from the old PR https://projects.blender.org/blender/blender/pulls/137617 as I didn't know if anything else needs to be changed (and I've only tested this on Linux).

Pull Request: https://projects.blender.org/blender/blender/pulls/138139
2025-05-28 11:26:05 +02:00
Thomas Dinges
77eea32d20 Deps: Update python packages
charset-normalizer
idna
urllib3
requests
zstandard
certifi
pycodestyle

Also fix URL and package name for zstandard. (Thanks to Campbell for this).

Pull Request: https://projects.blender.org/blender/blender/pulls/139105
2025-05-27 16:26:11 +02:00
Sebastian Parborg
2f27cead09 Build: Make Zstandard use our zstd library
This makes it so that we can update to newer Zstandard versions without having to worry about zstd library version mismatches (Zstandard bundled their own zstd version)

Pull Request: https://projects.blender.org/blender/blender/pulls/138777
2025-05-27 16:21:59 +02:00
Anthony Roberts
32f7665673 Deps: Add support for ARM64 assembly in x264 and update FFmpeg version
It appears that previously, assembly was straight up disabled for all ARM64 platforms in x264 - this re-enables it.

This also updates the version of FFmpeg to 7.1.1. I updated the patch files so that they would cleanly apply to 7.1.1.

For Windows ARM64, it also switches both of these libraries to use the copy of LLVM we build as part of the deps, instead of MSVC - this gives a small performance increase. To do this for x264, I added a small patch taken from VCPKG - this should be harmless to other platforms.

With all these changes, I was able to get a ~20-30% perf improvement in video transcoding in the sequence editor.

Pull Request: https://projects.blender.org/blender/blender/pulls/137670
2025-05-27 10:20:48 +02:00
Anthony Roberts
b1e39d6cae Deps: Prevent OSL trying to use optix/CUDA on Windows ARM64
This was causing build issues as of #138788 (no idea why it wasn't previously)

Pull Request: https://projects.blender.org/blender/blender/pulls/139342
2025-05-27 10:10:13 +02:00
Brecht Van Lommel
68ddf4125c Build: Explicitly fetch LFS files from fallback remote
Do it in make update tight after adding the remote. For some reason the
searchall mechanism does not work reliably immediately after checkout.

Fixes part of #139328.
2025-05-26 19:09:27 +02:00
Sebastian Parborg
09766d1996 Fix: Don't update submodules that we shouldn't checkout
There were a logic error in make update where we would fetch data from
submodules when not referenced in our local git config.

Fixes part of #139328.

Pull Request: https://projects.blender.org/blender/blender/pulls/139350
2025-05-26 19:09:26 +02:00
Sebastian Parborg
790d808b71 Fix: Lint issues in make_update.py 2025-05-26 15:31:17 +02:00
Sebastian Parborg
d94aeee2dc Linux: Fetch libraries with "make update", update help arguments for make_update.py
End users that do not want the libraries can use `make update_code`

Pull Request: https://projects.blender.org/blender/blender/pulls/139353
2025-05-26 14:33:35 +02:00
Nikita Sirgienko
11921b505b Build: upgrade DPC++ to 6.1.0 release
This upgrade for DPC++ and its dependencies brings several
bug fixes and also eliminates some patches and backports
that are now obsolete with this new release.

Pull Request: https://projects.blender.org/blender/blender/pulls/138173
2025-05-23 08:08:00 +02:00
Campbell Barton
72f24fcbab Cleanup: resolve pylint warnings 2025-05-23 14:03:20 +10:00