summaryrefslogtreecommitdiffstats
path: root/src/render/backend/renderview.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-02-29 15:00:19 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-03-05 12:00:46 +0000
commit5e9ecab9df95d1d2e8fa2be58d75d01c5904df21 (patch)
tree652b2ac33a8ee0c77755b8e40706cff7c2481373 /src/render/backend/renderview.cpp
parentafe56dcfcd4ee34c85260871d67e229d383c4186 (diff)
Make the backend use workgroup sizes from ComputeCommand
Change-Id: I8b68857adad2adf8baf7a58506cb16e2b3c84d01 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/backend/renderview.cpp')
-rw-r--r--src/render/backend/renderview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/backend/renderview.cpp b/src/render/backend/renderview.cpp
index 5ef0b98c0..186d20151 100644
--- a/src/render/backend/renderview.cpp
+++ b/src/render/backend/renderview.cpp
@@ -609,6 +609,9 @@ void RenderView::buildComputeRenderCommands(Entity *node)
RenderCommand *command = m_allocator->allocate<RenderCommand>();
command->m_type = RenderCommand::Compute;
+ command->m_workGroups[0] = std::max(m_workGroups[0], computeJob->x());
+ command->m_workGroups[1] = std::max(m_workGroups[1], computeJob->y());
+ command->m_workGroups[2] = std::max(m_workGroups[2], computeJob->z());
setShaderAndUniforms(command,
pass,
globalParameters,