OSDN Git Service

Add slot number to forEach hal.
authorJason Sams <rjsams@android.com>
Wed, 13 Jul 2011 18:26:26 +0000 (11:26 -0700)
committerJason Sams <rjsams@android.com>
Wed, 13 Jul 2011 18:26:26 +0000 (11:26 -0700)
Change-Id: I0f2992d5f4128422d07f897b335c219cc7f1d02c

libs/rs/driver/rsdBcc.cpp
libs/rs/driver/rsdBcc.h
libs/rs/rsScriptC.cpp
libs/rs/rs_hal.h

index 8120864..27fc41f 100644 (file)
@@ -332,6 +332,7 @@ static void wc_x(void *usr, uint32_t idx) {
 
 void rsdScriptInvokeForEach(const Context *rsc,
                             Script *s,
+                            uint32_t slot,
                             const Allocation * ain,
                             Allocation * aout,
                             const void * usr,
index 62b50f4..67929bc 100644 (file)
@@ -32,6 +32,7 @@ void rsdScriptInvokeFunction(const android::renderscript::Context *dc,
 
 void rsdScriptInvokeForEach(const android::renderscript::Context *rsc,
                             android::renderscript::Script *s,
+                            uint32_t slot,
                             const android::renderscript::Allocation * ain,
                             android::renderscript::Allocation * aout,
                             const void * usr,
index b230bb5..e8b1014 100644 (file)
@@ -121,7 +121,7 @@ void ScriptC::runForEach(Context *rsc,
 
     setupGLState(rsc);
     setupScript(rsc);
-    rsc->mHal.funcs.script.invokeForEach(rsc, this, ain, aout, usr, usrBytes, sc);
+    rsc->mHal.funcs.script.invokeForEach(rsc, this, 0, ain, aout, usr, usrBytes, sc);
 }
 
 void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) {
index 928dca5..6a4537b 100644 (file)
@@ -70,6 +70,7 @@ typedef struct {
         int (*invokeRoot)(const Context *rsc, Script *s);
         void (*invokeForEach)(const Context *rsc,
                               Script *s,
+                              uint32_t slot,
                               const Allocation * ain,
                               Allocation * aout,
                               const void * usr,