summaryrefslogtreecommitdiff
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-02-21 20:13:12 -0800
committerStephen Hines <srhines@google.com>2012-02-22 15:24:29 -0800
commit4419977d78018a9933c7f455fe001f644f2d638b (patch)
tree59d68f239481e980e6b2dc52fc1cb7e3ef3dfe49 /rsScriptC.cpp
parent254305944bf430eae672507546df368e97d50759 (diff)
downloadrs-4419977d78018a9933c7f455fe001f644f2d638b.tar.gz
Support running ForEach on non-root functions.
BUG=6000538 Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r--rsScriptC.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp
index b4eb995a..79725b97 100644
--- a/rsScriptC.cpp
+++ b/rsScriptC.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2009 The Android Open Source Project
+ * Copyright (C) 2009-2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -128,6 +128,7 @@ uint32_t ScriptC::run(Context *rsc) {
void ScriptC::runForEach(Context *rsc,
+ uint32_t slot,
const Allocation * ain,
Allocation * aout,
const void * usr,
@@ -138,7 +139,7 @@ void ScriptC::runForEach(Context *rsc,
setupGLState(rsc);
setupScript(rsc);
- rsc->mHal.funcs.script.invokeForEach(rsc, this, 0, ain, aout, usr, usrBytes, sc);
+ rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ain, aout, usr, usrBytes, sc);
}
void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) {