summaryrefslogtreecommitdiffstats
path: root/rsScriptC.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-04-20 15:09:01 -0700
committerJason Sams <rjsams@android.com>2011-04-20 15:09:01 -0700
commit87fe59a2f4d4c74539bfa0bff5f9a7e320e99415 (patch)
tree34d774d54f75657d949e034858149dba4e3368ff /rsScriptC.cpp
parenteed1b156ca3e439f3d178ce99a4fa736527b15f9 (diff)
downloadandroid_frameworks_rs-87fe59a2f4d4c74539bfa0bff5f9a7e320e99415.tar.gz
android_frameworks_rs-87fe59a2f4d4c74539bfa0bff5f9a7e320e99415.tar.bz2
android_frameworks_rs-87fe59a2f4d4c74539bfa0bff5f9a7e320e99415.zip
Create runtime stubs for compute driver.
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r--rsScriptC.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp
index 8e958913..c379b8ba 100644
--- a/rsScriptC.cpp
+++ b/rsScriptC.cpp
@@ -16,7 +16,6 @@
#include "rsContext.h"
#include "rsScriptC.h"
-#include "rsMatrix.h"
#include "utils/Timers.h"
#include "utils/StopWatch.h"
@@ -120,13 +119,14 @@ void ScriptC::runForEach(Context *rsc,
const Allocation * ain,
Allocation * aout,
const void * usr,
+ size_t usrBytes,
const RsScriptCall *sc) {
Context::PushState ps(rsc);
setupGLState(rsc);
setupScript(rsc);
- rsc->mHal.funcs.script.invokeForEach(rsc, this, ain, aout, usr, 0, sc);
+ rsc->mHal.funcs.script.invokeForEach(rsc, this, ain, aout, usr, usrBytes, sc);
}
void ScriptC::Invoke(Context *rsc, uint32_t slot, const void *data, uint32_t len) {
@@ -148,6 +148,7 @@ ScriptCState::ScriptCState() {
ScriptCState::~ScriptCState() {
}
+/*
static void* symbolLookup(void* pContext, char const* name) {
const ScriptCState::SymbolTable_t *sym;
ScriptC *s = (ScriptC *)pContext;
@@ -171,6 +172,7 @@ static void* symbolLookup(void* pContext, char const* name) {
LOGE("ScriptC sym lookup failed for %s", name);
return NULL;
}
+*/
#if 0
extern const char rs_runtime_lib_bc[];
@@ -185,7 +187,7 @@ bool ScriptC::runCompiler(Context *rsc,
//LOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen);
- rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0, symbolLookup);
+ rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0);
mEnviroment.mFragment.set(rsc->getDefaultProgramFragment());
mEnviroment.mVertex.set(rsc->getDefaultProgramVertex());