diff options
author | Jason Sams <jsams@google.com> | 2015-04-16 15:11:04 -0700 |
---|---|---|
committer | Jason Sams <jsams@google.com> | 2015-04-16 15:11:04 -0700 |
commit | a9139c724f8312b3634d213599f2d6b3b2505db2 (patch) | |
tree | a0b792f68011a5424bd520f2f87f3a3b8f3f674f /cpu_ref/rsCpuScript.cpp | |
parent | 43574b617762ee44bc46cb7e4a0d75786b80023f (diff) | |
download | rs-a9139c724f8312b3634d213599f2d6b3b2505db2.tar.gz |
Fix allocation-less launches.
Change-Id: I6d6b46c55f3e88a810ebe51def3ebaccb1fd3fa2
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r-- | cpu_ref/rsCpuScript.cpp | 4 |
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"); |