Searched refs:Allocation (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/base/libs/rs/
H A DrsFBOCache.h26 class Allocation;
36 void bindColorTarget(Context *rsc, Allocation *a, uint32_t slot);
37 void bindDepthTarget(Context *, Allocation *a);
47 Allocation **colorTargets;
49 Allocation *depthTarget;
56 ObjectBaseRef<Allocation> *mColorTargets;
57 ObjectBaseRef<Allocation> mDepthTarget;
H A DrsMesh.h47 Allocation **vertexBuffers;
51 Allocation **indexBuffers;
60 void setVertexBuffer(Allocation *vb, uint32_t index) {
65 void setPrimitive(Allocation *idx, RsPrimitive prim, uint32_t index) {
81 ObjectBaseRef<Allocation> *mVertexBuffers;
82 ObjectBaseRef<Allocation> *mIndexBuffers;
H A DrsProgram.h43 Allocation **textures;
50 Allocation **constants;
66 void bindAllocation(Context *, Allocation *, uint32_t slot);
70 void bindTexture(Context *, uint32_t slot, Allocation *);
74 ObjectBaseRef<Allocation> *mTextures;
76 ObjectBaseRef<Allocation> *mConstants;
H A Drs_hal.h29 class Allocation;
87 const Allocation * ain,
88 Allocation * aout,
110 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero);
111 void (*destroy)(const Context *rsc, Allocation *alloc);
113 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType,
115 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src);
116 void (*markDirty)(const Context *rsc, const Allocation *alloc);
118 void (*data1D)(const Context *rsc, const Allocation *alloc,
121 void (*data2D)(const Context *rsc, const Allocation *allo
[all...]
H A DrsAllocation.cpp24 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, function in class:Allocation
37 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages,
39 Allocation *a = new Allocation(rsc, type, usages, mc);
42 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
49 void Allocation::updateCache() {
60 Allocation
[all...]
H A DrsScript.h72 void setSlot(uint32_t slot, Allocation *a);
79 const Allocation * ain,
80 Allocation * aout,
89 ObjectBaseRef<Allocation> *mSlots;
H A DrsAdapter.h33 Adapter1D(Context *, Allocation *);
37 void setAllocation(Allocation *a) {mAllocation.set(a);}
57 ObjectBaseRef<Allocation> mAllocation;
70 Adapter2D(Context *, Allocation *);
78 void setAllocation(Allocation *a) {mAllocation.set(a);}
92 ObjectBaseRef<Allocation> mAllocation;
H A DrsFBOCache.cpp29 mHal.state.colorTargets = new Allocation*[mHal.state.colorTargetsCount];
30 mColorTargets = new ObjectBaseRef<Allocation>[mHal.state.colorTargetsCount];
47 void FBOCache::bindColorTarget(Context *rsc, Allocation *a, uint32_t slot) {
63 void FBOCache::bindDepthTarget(Context *rsc, Allocation *a) {
H A DrsRuntime.h32 void rsrBindTexture(Context *, Script *, ProgramFragment *, uint32_t slot, Allocation *);
38 void rsrBindFrameBufferObjectColorTarget(Context *, Script *, Allocation *, uint32_t slot);
39 void rsrBindFrameBufferObjectDepthTarget(Context *, Script *, Allocation *);
87 void rsrAllocationSyncAll(Context *, Script *, Allocation *);
89 void rsrAllocationCopy1DRange(Context *, Allocation *dstAlloc,
93 Allocation *srcAlloc,
95 void rsrAllocationCopy2DRange(Context *, Allocation *dstAlloc,
99 Allocation *srcAlloc,
107 void rsrDrawTextAlloc(Context *, Script *, Allocation *, int x, int y);
111 void rsrMeasureTextAlloc(Context *, Script *, Allocation *,
[all...]
H A DrsScriptC.h42 const Allocation *ptrToAllocation(const void *) const;
50 const Allocation * ain,
51 Allocation * aout,
H A DrsAllocation.h36 class Allocation : public ObjectBase { class in namespace:android::renderscript
68 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages,
70 virtual ~Allocation();
78 void copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len);
102 static Allocation *createFromStream(Context *rsc, IStream *stream);
137 Allocation(Context *rsc, const Type *, uint32_t usages, RsAllocationMipmapControl mc);
H A DrsProgram.cpp40 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount];
44 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount];
46 mHal.state.textures = new Allocation*[mHal.state.texturesCount];
51 mHal.state.constants = new Allocation*[mHal.state.constantsCount];
139 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) {
168 void Program::bindTexture(Context *rsc, uint32_t slot, Allocation *a) {
204 p->bindAllocation(rsc, static_cast<Allocation *>(constants), slot);
209 p->bindTexture(rsc, slot, static_cast<Allocation *>(a));
H A DrsScriptC_Lib.cpp157 Allocation *in, Allocation *out,
163 void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) {
167 void rsrAllocationCopy1DRange(Context *rsc, Allocation *dstAlloc,
171 Allocation *srcAlloc,
178 void rsrAllocationCopy2DRange(Context *rsc, Allocation *dstAlloc,
182 Allocation *srcAlloc,
190 const Allocation * rsrGetAllocation(Context *rsc, Script *s, const void *ptr) {
/frameworks/base/libs/rs/driver/
H A DrsdAllocation.h57 android::renderscript::Allocation *alloc,
60 android::renderscript::Allocation *alloc);
63 const android::renderscript::Allocation *alloc,
66 const android::renderscript::Allocation *alloc,
69 const android::renderscript::Allocation *alloc);
72 const android::renderscript::Allocation *alloc,
76 const android::renderscript::Allocation *alloc,
81 const android::renderscript::Allocation *alloc,
87 const android::renderscript::Allocation *dstAlloc,
89 const android::renderscript::Allocation *srcAllo
[all...]
H A DrsdAllocation.cpp76 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr,
92 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) {
134 static void UploadToTexture(const Context *rsc, const Allocation *alloc) {
163 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) {
186 static void UploadToBufferObject(const Context *rsc, const Allocation *alloc) {
209 bool rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) {
254 void rsdAllocationDestroy(const Context *rsc, Allocation *alloc) {
284 void rsdAllocationResize(const Context *rsc, const Allocation *alloc,
291 ((Allocation *)alloc)->mHal.drvState.mallocPtr = drv->mallocPtr;
303 static void rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *allo
[all...]
H A DrsdRuntimeStubs.cpp42 // Allocation
46 static void SC_AllocationSyncAll2(Allocation *a, RsAllocationUsageType source) {
51 static void SC_AllocationSyncAll(Allocation *a) {
56 static void SC_AllocationCopy1DRange(Allocation *dstAlloc,
60 Allocation *srcAlloc,
67 static void SC_AllocationCopy2DRange(Allocation *dstAlloc,
71 Allocation *srcAlloc,
87 static void SC_BindTexture(ProgramFragment *pf, uint32_t slot, Allocation *a) {
117 static void SC_BindFrameBufferObjectColorTarget(Allocation *a, uint32_t slot) {
122 static void SC_BindFrameBufferObjectDepthTarget(Allocation *
[all...]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
H A DUT_alloc.java40 Allocation A = Allocation.createTyped(RS, typeBuilder.create());
45 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create());
48 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create());
51 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create());
/frameworks/base/graphics/java/android/renderscript/
H A DScript.java54 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) {
86 public void bindAllocation(Allocation va, int slot) {
185 protected Allocation mAllocation;
188 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT);
192 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT | usages);
206 public Allocation getAllocation() {
H A DMesh.java81 Allocation[] mVertexBuffers;
82 Allocation[] mIndexBuffers;
104 public Allocation getVertexAllocation(int slot) {
125 public Allocation getIndexSetAllocation(int slot) {
150 mVertexBuffers = new Allocation[vtxCount];
151 mIndexBuffers = new Allocation[idxCount];
156 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT);
163 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation
[all...]
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
H A DFBOSyncRS.java54 private Allocation mGridImage;
55 private Allocation mOffscreen;
56 private Allocation mOffscreenDepth;
57 private Allocation mAllocPV;
58 private Allocation mReadBackTest;
61 private Allocation mTextAlloc;
118 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot,
119 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE,
120 Allocation.USAGE_GRAPHICS_TEXTURE);
126 mTextAlloc = Allocation
[all...]
H A DFBOTestRS.java54 private Allocation mGridImage;
55 private Allocation mOffscreen;
56 private Allocation mOffscreenDepth;
57 private Allocation mAllocPV;
60 private Allocation mTextAlloc;
117 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot,
118 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE,
119 Allocation.USAGE_GRAPHICS_TEXTURE);
125 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation
[all...]
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/
H A DLaunchTest.java24 private Allocation mAllocationX;
25 private Allocation mAllocationXY;
35 mAllocationX = Allocation.createSized(rs, Element.U8(rs), dim);
39 mAllocationXY = Allocation.createTyped(rs, tb.create());
H A DMandelbrot.java24 private Allocation mAllocationXY;
34 mAllocationXY = Allocation.createTyped(rs, tb.create());
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
H A DShadersTestRS.java20 import android.renderscript.Allocation;
65 private Allocation mMeshTexture;
66 private Allocation mScreen;
67 private Allocation mScreenDepth;
135 mMeshTexture = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot,
136 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE,
137 Allocation.USAGE_GRAPHICS_TEXTURE);
192 mScreen = Allocation.createTyped(mRS, b.create(),
193 Allocation.USAGE_GRAPHICS_TEXTURE | Allocation
[all...]
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
H A DImageProcessingActivity.java27 import android.renderscript.Allocation;
72 private Allocation mInPixelsAllocation;
74 private Allocation mOutPixelsAllocation;
76 private Allocation mScratchPixelsAllocation1;
77 private Allocation mScratchPixelsAllocation2;
223 mInPixelsAllocation = Allocation.createFromBitmap(mRS, mBitmapIn,
224 Allocation.MipmapControl.MIPMAP_NONE,
225 Allocation.USAGE_SCRIPT);
226 mOutPixelsAllocation = Allocation.createFromBitmap(mRS, mBitmapOut,
227 Allocation
[all...]

Completed in 169 milliseconds

123