summaryrefslogtreecommitdiff
path: root/cpu_ref/rsCpuScript.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2015-04-16 22:13:12 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-16 22:13:13 +0000
commitc1291b32389e0c26b37e8d4a9b01f58bd47ee48a (patch)
tree3661e805599785ff9c6af591c994bc72a0874f14 /cpu_ref/rsCpuScript.cpp
parentf5f946df177036e54487cab0c56a381a111ba407 (diff)
parenta9139c724f8312b3634d213599f2d6b3b2505db2 (diff)
Merge "Fix allocation-less launches."
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r--cpu_ref/rsCpuScript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp
index fb87dd1a..30b530b9 100644
--- a/cpu_ref/rsCpuScript.cpp
+++ b/cpu_ref/rsCpuScript.cpp
@@ -546,6 +546,10 @@ bool RsdCpuScriptImpl::forEachMtlsSetup(const Allocation ** ains,
mtls->fep.dim.y = outType->getDimY();
mtls->fep.dim.z = outType->getDimZ();
+ } else if (sc != nullptr) {
+ mtls->fep.dim.x = sc->xEnd;
+ mtls->fep.dim.y = sc->yEnd;
+ mtls->fep.dim.z = 0;
} else {
mCtx->getContext()->setError(RS_ERROR_BAD_SCRIPT,
"rsForEach called with null allocations");