summaryrefslogtreecommitdiff
path: root/rsScript.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2012-07-25 17:55:39 -0700
committerJason Sams <jsams@google.com>2012-07-25 17:55:39 -0700
commit807fdc4b6f3fb893015ee136565d6151bb2332d3 (patch)
treea9e5791d67e07f407f135b332586518678aae4f9 /rsScript.cpp
parente3150cfb3edb028407669e4a65e087eae77e718c (diff)
downloadrs-807fdc4b6f3fb893015ee136565d6151bb2332d3.tar.gz
Move memory layout to driver.
This change moves all allocation data copies to the hal. Also removes stride from the runtime. Follow on changes will remove the malloc pointer from the runtime. Change-Id: I30967c739800cd4b97186e9fc8b69f26a3f2787d
Diffstat (limited to 'rsScript.cpp')
-rw-r--r--rsScript.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/rsScript.cpp b/rsScript.cpp
index d39fb5e6..b199496d 100644
--- a/rsScript.cpp
+++ b/rsScript.cpp
@@ -48,11 +48,7 @@ void Script::setSlot(uint32_t slot, Allocation *a) {
}
mSlots[slot].set(a);
- if (a != NULL) {
- mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a->getPtr());
- } else {
- mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, NULL);
- }
+ mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a);
}
void Script::setVar(uint32_t slot, const void *val, size_t len) {