summaryrefslogtreecommitdiff
path: root/libs/rs/rsScript.h
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2011-04-20 15:09:01 -0700
committer Jason Sams <rjsams@android.com> 2011-04-20 15:09:01 -0700
commitfcf7231249822ff4dae852f1de1f799756689f91 (patch)
treefd1e1e4ee8c1ea6a45c06cbd97afe29eee77df31 /libs/rs/rsScript.h
parent16f61049a872e80628c0004d75e184a6ddf73b02 (diff)
Create runtime stubs for compute driver.
Change-Id: I8e0250a642844a2ad3ff6efc38e385445b7da032
Diffstat (limited to 'libs/rs/rsScript.h')
-rw-r--r--libs/rs/rsScript.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/libs/rs/rsScript.h b/libs/rs/rsScript.h
index 671fbe6746f4..088c8d1c69bf 100644
--- a/libs/rs/rsScript.h
+++ b/libs/rs/rsScript.h
@@ -34,25 +34,6 @@ public:
struct Hal {
void * drv;
- struct State {
- ObjectBaseRef<const Type> type;
- void * mallocPtr;
-
- uint32_t usageFlags;
- RsAllocationMipmapControl mipmapControl;
-
- // Cached fields from the Type and Element
- // to prevent pointer chasing in critical loops.
- uint32_t dimensionX;
- uint32_t dimensionY;
- uint32_t dimensionZ;
- uint32_t elementSizeBytes;
- bool hasMipmaps;
- bool hasFaces;
- bool hasReferences;
- };
- State state;
-
struct DriverInfo {
int mVersionMajor;
int mVersionMinor;
@@ -96,6 +77,7 @@ public:
const Allocation * ain,
Allocation * aout,
const void * usr,
+ size_t usrBytes,
const RsScriptCall *sc = NULL) = 0;
virtual void Invoke(Context *rsc, uint32_t slot, const void *data, uint32_t len) = 0;