summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2016-06-01 14:45:47 -0700
committerDavid Gross <dgross@google.com>2016-06-14 14:28:31 -0700
commitfc7ab793ea2db91f330272d9470433bbb1a505ce (patch)
treeb1f14b174985529c8c8853ddd0dd889a58cc83d0 /rsScriptC.cpp
parent768fd02fde8745d1ab006c821567f8bb72c135c5 (diff)
downloadrs-fc7ab793ea2db91f330272d9470433bbb1a505ce.tar.gz
Delete simple reduction implementation.
Bug: 27298560 Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338 (cherry picked from commit ae2ec3febedfc29376b9104413fb4042028f1265)
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r--rsScriptC.cpp30
1 files changed, 5 insertions, 25 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp
index eaef8490..291fca2c 100644
--- a/rsScriptC.cpp
+++ b/rsScriptC.cpp
@@ -230,33 +230,13 @@ void ScriptC::runForEach(Context *rsc,
}
}
-void ScriptC::runReduce(Context *rsc, uint32_t slot, const Allocation *ain,
+void ScriptC::runReduce(Context *rsc, uint32_t slot,
+ const Allocation ** ains, size_t inLen,
Allocation *aout, const RsScriptCall *sc) {
- // TODO: Record the name of the kernel in the tracing information.
- ATRACE_CALL();
-
- if (slot >= mHal.info.exportedReduceCount) {
- rsc->setError(RS_ERROR_BAD_SCRIPT, "The simple reduce kernel index is out of bounds");
- return;
- }
- if (mRSC->hadFatalError()) return;
-
- setupScript(rsc);
-
- if (rsc->props.mLogScripts) {
- ALOGV("%p ScriptC::runReduce invoking slot %i, ptr %p", rsc, slot, this);
- }
-
- rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ain, aout, sc);
-}
-
-void ScriptC::runReduceNew(Context *rsc, uint32_t slot,
- const Allocation ** ains, size_t inLen,
- Allocation *aout, const RsScriptCall *sc) {
// TODO: Record the name of the kernel in the tracing information.
ATRACE_CALL();
- if (slot >= mHal.info.exportedReduceNewCount) {
+ if (slot >= mHal.info.exportedReduceCount) {
rsc->setError(RS_ERROR_BAD_SCRIPT, "The general reduce kernel index is out of bounds");
return;
}
@@ -265,10 +245,10 @@ void ScriptC::runReduceNew(Context *rsc, uint32_t slot,
setupScript(rsc);
if (rsc->props.mLogScripts) {
- ALOGV("%p ScriptC::runReduceNew invoking slot %i, ptr %p", rsc, slot, this);
+ ALOGV("%p ScriptC::runReduce invoking slot %i, ptr %p", rsc, slot, this);
}
- rsc->mHal.funcs.script.invokeReduceNew(rsc, this, slot, ains, inLen, aout, sc);
+ rsc->mHal.funcs.script.invokeReduce(rsc, this, slot, ains, inLen, aout, sc);
}
void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) {