From 807fdc4b6f3fb893015ee136565d6151bb2332d3 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 25 Jul 2012 17:55:39 -0700 Subject: 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 --- rsScript.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rsScript.cpp') 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) { -- cgit v1.2.3