Blender Git Loki

Kaikki Blender Git kommitit.

Page: 96 / 8462

November 9, 2021, 23:42 (GMT)
USD IO format fixes.
Revision aa44092 by Hans Goudey (master)
November 9, 2021, 23:23 (GMT)
Fix: Hide selection value in resample curve node, fix order

Selection sockets are meant to come right after the geometry,
this was missed in review of rBa7672caeb255e3.
Also, the selection value was not hidden.
November 9, 2021, 21:58 (GMT)
Cycles: Disable graphics interop for HIP devices

This is due to a driver bug, so disable it for now until it gets resolved.

Fixes T92972.

Reviewed By: brecht

Maniphest Tasks: T92972

Differential Revision: https://developer.blender.org/D13167
Revision 1f6010e by Hans Goudey (master)
November 9, 2021, 21:57 (GMT)
Cleanup: Move info_stats.c to C++
Revision 3a4c8f4 by Michael Jones / Michael Jones (master)
November 9, 2021, 21:43 (GMT)
Cycles: Adapt shared kernel/device/gpu layer for MSL

This patch adapts the shared kernel entrypoints so that they can be compiled as MSL (Metal Shading Language). Where possible, the adaptations avoid changes in common code.

In MSL, kernel function inputs are explicitly bound to resources. In the case of argument buffers, we declare a struct containing the kernel arguments, accessible via device pointer. This differs from CUDA and HIP where kernel function arguments are declared as traditional C-style function parameters. This patch adapts the entrypoints declared in kernel.h so that they can be translated via a new `ccl_gpu_kernel_signature` macro into the required parameter struct + kernel entrypoint pairing for MSL.

MSL buffer attribution must be applied to function parameters or non-static class data members. To allow universal access to the integrator state, kernel data, and texture fetch adapters, we wrap all of the shared kernel code in a `MetalKernelContext` class. This is achieved by bracketing the appropriate kernel headers with "context_begin.h" and "context_end.h" on Metal. When calling deeper into the kernel code, we must reference the context class (e.g. `context.integrator_init_from_camera`). This extra prefixing is performed by a set of defines in "context_end.h". These will require explicit maintenance if entrypoints change. We invite discussion on more maintainable ways to enforce correctness.

Lambda expressions are not supported on MSL, so a new `ccl_gpu_kernel_lambda` macro generates an inline function object and optionally capturing any required state. This yields the same behaviour. This approach is applied to all parallel_... implementations which are templated by operation. The lambda expressions in the film_convert... kernels don't adapt cleanly to use function objects. However, these entrypoints can be macro-generated more concisely to avoid lambda expressions entirely, instead relying on constant folding to handle the pixel/channel conversions.

A separate implementation of `gpu_parallel_active_index_array` is provided for Metal to workaround some subtle differences in SIMD width, and also to encapsulate some required thread parameters which must be declared as explicit entrypoint function parameters.

Ref T92212

Reviewed By: brecht

Maniphest Tasks: T92212

Differential Revision: https://developer.blender.org/D13109
Revision 7b530c6 by Hans Goudey (master)
November 9, 2021, 19:15 (GMT)
Fix: Incorrect assert in dot grid drawing

It's totally valid for the grid levels to be zero.
Revision 4648c49 by Hans Goudey (master)
November 9, 2021, 19:08 (GMT)
Merge branch 'blender-v3.0-release'
November 9, 2021, 19:00 (GMT)
support enum in interface socket
Revision 44239fa by Hans Goudey (master)
November 9, 2021, 18:59 (GMT)
Fix: Crash with no active object after recent commit

rBaa13c4b386b13111 added a check for the active object
in drawing code, but it missed adding a check for the active
base before trying to retrieve its object.
November 9, 2021, 18:54 (GMT)
fixes
November 9, 2021, 18:28 (GMT)
improve
November 9, 2021, 18:16 (GMT)
Sculpt-dev: fix compile error

Why can't we have -werror settings
the same on all compilers and platforms?
November 9, 2021, 18:02 (GMT)
USD Preview Surface import as a fallback.

Added logic to fall back on importing existing
USD Preview Surface shaders if importing MDL
is selected as an option but the material has
no MDL shaders.
November 9, 2021, 17:29 (GMT)
Merge branch 'master' into temp-enum-socket
November 9, 2021, 16:58 (GMT)
tests/benchmarks: Fix operation on windows

The test script did not work on windows
since it had some trouble importing the
api module on the blender side of things.

turning the file path to the module into
a raw string literal sidesteps the
backslash issue in the path.

Differential Revision: https://developer.blender.org/D13163

Reviewed by: brecht
November 9, 2021, 16:53 (GMT)
Merge branch 'blender-v3.0-release'
November 9, 2021, 16:52 (GMT)
Fix T92908: print warning when instance recursion limit is reached

Currently we have a fixed instance recursion limit. While we want to lift this
limitation at some point, that is out of scope for a bug fix. For now just print
a warning to make it easier to detect the issue.

Differential Revision: https://developer.blender.org/D13162
November 9, 2021, 16:43 (GMT)
Merge branch 'blender-v3.0-release'
November 9, 2021, 16:42 (GMT)
UI: use plural form of "Gizmo" in Gizmo display menus

Because the menus list several gizmo visibility settings it makes grammatical sense that the panel name is plural.

This also matches the "Overlays" menu.
November 9, 2021, 16:40 (GMT)
Cycles: enable HIP device and binaries on Windows

(In a branch for testing)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021