New ("fullframe") CPU compositor backend is being used now, and all the code
related to "tiled" CPU compositor is just never used anymore. The new backend
is faster, uses less memory, better matches GPU compositor, etc.
TL;DR: 20 thousand lines of code gone.
This commit:
- Removes various bits and pieces related to "tiled" compositor (execution
groups, one-pixel-at-a-time node processing, read/write buffer operations
related to node execution groups).
- "GPU" (OpenCL) execution device, that was only used by several nodes of
the tiled compositor.
- With that, remove CLEW external library too, since nothing within Blender
uses OpenCL directly anymore.
Pull Request: https://projects.blender.org/blender/blender/pulls/118819
30 lines
891 B
C++
30 lines
891 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "COM_MultiThreadedOperation.h"
|
|
#include "COM_ExecutionSystem.h"
|
|
|
|
namespace blender::compositor {
|
|
|
|
MultiThreadedOperation::MultiThreadedOperation()
|
|
{
|
|
num_passes_ = 1;
|
|
current_pass_ = 0;
|
|
}
|
|
|
|
void MultiThreadedOperation::update_memory_buffer(MemoryBuffer *output,
|
|
const rcti &area,
|
|
Span<MemoryBuffer *> inputs)
|
|
{
|
|
for (current_pass_ = 0; current_pass_ < num_passes_; current_pass_++) {
|
|
update_memory_buffer_started(output, area, inputs);
|
|
exec_system_->execute_work(area, [=](const rcti &split_rect) {
|
|
update_memory_buffer_partial(output, split_rect, inputs);
|
|
});
|
|
update_memory_buffer_finished(output, area, inputs);
|
|
}
|
|
}
|
|
|
|
} // namespace blender::compositor
|