diff options
| author | Matt Wala <wala@google.com> | 2015-07-30 17:30:25 -0700 |
|---|---|---|
| committer | Matt Wala <wala@google.com> | 2015-08-14 12:24:24 -0700 |
| commit | 14ce007a633b10e3b9a3fae29d8f53a7e8c9b59f (patch) | |
| tree | d9089fc8c60a65d071cb817b156cc0edc3bb5015 /rsScript.cpp | |
| parent | 2b4632b580c756af046ee4b9a6ecc77a01388d4e (diff) | |
Add a basic implementation of the reduce kernel API to the CPU
reference implementation.
Bug: 22631253
For now, this just runs a serial reduction on one thread.
Change-Id: I34c96d24bb6f44274de72bb53160abcf79d143b0
Diffstat (limited to 'rsScript.cpp')
| -rw-r--r-- | rsScript.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rsScript.cpp b/rsScript.cpp index 483789cb..bc242921 100644 --- a/rsScript.cpp +++ b/rsScript.cpp @@ -227,7 +227,9 @@ void rsi_ScriptForEach(Context *rsc, RsScript vs, uint32_t slot, void rsi_ScriptReduce(Context *rsc, RsScript vs, uint32_t slot, RsAllocation vain, RsAllocation vaout, const RsScriptCall *sc, size_t scLen) { - // TODO(wala) + Script *s = static_cast<Script *>(vs); + s->runReduce(rsc, slot, static_cast<const Allocation *>(vain), + static_cast<Allocation *>(vaout), sc); } void rsi_ScriptInvoke(Context *rsc, RsScript vs, uint32_t slot) { |
