fa3e47523e
This patch ports the GLSL SMAA library to the CPU compositor in order to unify the anti-aliasing behavior between the CPU and GPU compositor. Additionally, the SMAA texture generator was removed since it is now unused. Previously, we used an external C++ library for SMAA anti-aliasing, which is itself a port of the GLSL SMAA library. However, the code structure and results of the library were different, which made it quite difficult to match results between CPU and GPU, hence the decision to port the library ourselves. The port was performed through a complete copy of the library to C++, retaining the same function and variable names, even if they are different from Blender's naming conversions. The necessary code changes were done to make it work in C++, including manually doing swizzling which changes the code structure a bit. Even after porting the library, there were still major differences between CPU and GPU, due to different arithmetic precision. To fix this some of the bilinear samplers used in branches and selections were carefully changed to use point samplers to avoid discontinuities around branches, also resulting in a nice performance improvement. Some slight differences still exist due to different bilinear interpolation, but they shall be looked into later once we have a baseline implementation. The new implementation is slower than the existing implementation, most likely due to the liberal use of bilinear interpolation, since it is quite cheap on GPUs and the code even does more work to use bilinear interpolation to avoid multiple texture fetches, except this causes a slow down on CPUs. Some of those were alleviated as mentioned in the previous section, but we can probably look into optimizing it further. Pull Request: https://projects.blender.org/blender/blender/pulls/119414 |
||
---|---|---|
.. | ||
audaspace | ||
binreloc | ||
bullet2 | ||
ceres | ||
cuew | ||
curve_fit_nd | ||
draco | ||
Eigen3 | ||
fast_float | ||
fmtlib | ||
gflags | ||
glew-es/include/GL | ||
glog | ||
gmock | ||
gtest | ||
hipew | ||
json | ||
lzma | ||
lzo | ||
mantaflow | ||
nanosvg | ||
quadriflow | ||
rangetree | ||
renderdoc | ||
sdlew | ||
tinygltf | ||
vulkan_memory_allocator | ||
wcwidth | ||
xdnd | ||
.clang-format | ||
CMakeLists.txt | ||
README |
When updating a library remember to: * Update the README.blender with the corresponding version.