diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-06-09 12:10:21 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-06-09 12:21:23 +0300 |
commit | b18a214ecba602f8d06ec40ee03111308c9afbd7 (patch) | |
tree | 8a57a6f11af34a3206128bfeb368b5d98085e9b2 /source/blender/compositor/intern | |
parent | d7c812f15befb161d47451afdeba9d070a7d81a7 (diff) |
Fix: Compositor test desintegrate failing on arm64
Changes introduced in commit rBe9f2f17e8518
can create different render results when there is
a Math or Mix operation after TextureOperation
on tiled execution model.
This is due to WriteBufferOperation forcing a single pixel
resolution when these operations use a preferred
resolution of 0 to check if their inputs have resolution.
Fixing this behaviour creates different renders too.
This patch keeps previous tiled implementation and
adds the new implementation only for full frame execution.
Reviewed By: Jeroen Bakker (jbakker)
Differential Revision: https://developer.blender.org/D11546
Diffstat (limited to 'source/blender/compositor/intern')
-rw-r--r-- | source/blender/compositor/intern/COM_NodeOperation.h | 10 | ||||
-rw-r--r-- | source/blender/compositor/intern/COM_NodeOperationBuilder.cc | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_NodeOperation.h b/source/blender/compositor/intern/COM_NodeOperation.h index 11b293a400f..5c4d6dd19ba 100644 --- a/source/blender/compositor/intern/COM_NodeOperation.h +++ b/source/blender/compositor/intern/COM_NodeOperation.h @@ -297,6 +297,11 @@ class NodeOperation { protected: /** + * Compositor execution model. + */ + eExecutionModel execution_model_; + + /** * Width of the output of this operation. */ unsigned int m_width; @@ -316,6 +321,11 @@ class NodeOperation { { } + void set_execution_model(const eExecutionModel model) + { + execution_model_ = model; + } + void set_name(const std::string name) { m_name = name; diff --git a/source/blender/compositor/intern/COM_NodeOperationBuilder.cc b/source/blender/compositor/intern/COM_NodeOperationBuilder.cc index c81a5a2bd98..1beb83bb477 100644 --- a/source/blender/compositor/intern/COM_NodeOperationBuilder.cc +++ b/source/blender/compositor/intern/COM_NodeOperationBuilder.cc @@ -129,6 +129,7 @@ void NodeOperationBuilder::addOperation(NodeOperation *operation) if (m_current_node) { operation->set_name(m_current_node->getbNode()->name); } + operation->set_execution_model(m_context->get_execution_model()); } void NodeOperationBuilder::mapInputSocket(NodeInput *node_socket, |