Home
last modified time | relevance | path

Searched refs:Allocation (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/libs/rs/
DrsAllocation.cpp24 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, in Allocation() function in Allocation
37 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, in createAllocation()
39 Allocation *a = new Allocation(rsc, type, usages, mc); in createAllocation()
49 void Allocation::updateCache() { in updateCache()
60 Allocation::~Allocation() { in ~Allocation()
65 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { in syncAll()
69 void Allocation::read(void *data) { in read()
73 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data()
88 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data()
105 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, in data()
[all …]
Drs_hal.h29 class Allocation; variable
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 *alloc,
[all …]
DrsFBOCache.h26 class Allocation; variable
36 void bindColorTarget(Context *rsc, Allocation *a, uint32_t slot);
37 void bindDepthTarget(Context *, Allocation *a);
47 ObjectBaseRef<Allocation> *colorTargets;
49 ObjectBaseRef<Allocation> depthTarget;
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 …]
DrsAdapter.h33 Adapter1D(Context *, Allocation *);
37 void setAllocation(Allocation *a) {mAllocation.set(a);} in setAllocation()
57 ObjectBaseRef<Allocation> mAllocation;
70 Adapter2D(Context *, Allocation *);
78 void setAllocation(Allocation *a) {mAllocation.set(a);} in setAllocation()
92 ObjectBaseRef<Allocation> mAllocation;
DrsScriptC_Lib.cpp157 Allocation *in, Allocation *out, in rsrForEach()
163 void rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) { in rsrAllocationSyncAll()
167 void rsrAllocationCopy1DRange(Context *rsc, Allocation *dstAlloc, in rsrAllocationCopy1DRange()
171 Allocation *srcAlloc, in rsrAllocationCopy1DRange()
178 void rsrAllocationCopy2DRange(Context *rsc, Allocation *dstAlloc, in rsrAllocationCopy2DRange()
182 Allocation *srcAlloc, in rsrAllocationCopy2DRange()
190 const Allocation * rsrGetAllocation(Context *rsc, Script *s, const void *ptr) { in rsrGetAllocation()
DrsProgram.h39 void bindAllocation(Context *, Allocation *, uint32_t slot);
43 void bindTexture(Context *, uint32_t slot, Allocation *);
56 ObjectBaseRef<Allocation> *textures;
63 ObjectBaseRef<Allocation> *constants;
DrsAllocation.h36 class Allocation : public ObjectBase {
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);
132 Allocation(Context *rsc, const Type *, uint32_t usages, RsAllocationMipmapControl mc);
DrsMesh.h38 ObjectBaseRef<Allocation> mIndexBuffer;
54 ObjectBaseRef<Allocation> *vertexBuffers;
64 void setVertexBuffer(Allocation *vb, uint32_t index) { in setVertexBuffer()
68 void setPrimitive(Allocation *idx, RsPrimitive prim, uint32_t index) { in setPrimitive()
DrsScript.h72 void setSlot(uint32_t slot, Allocation *a);
79 const Allocation * ain,
80 Allocation * aout,
89 ObjectBaseRef<Allocation> *mSlots;
/frameworks/base/libs/rs/driver/
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 *srcAlloc,
[all …]
DrsdAllocation.cpp76 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, in Update2DTexture()
92 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { in Upload2DTexture()
134 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { in UploadToTexture()
163 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { in AllocateRenderTarget()
186 static void UploadToBufferObject(const Context *rsc, const Allocation *alloc) { in UploadToBufferObject()
209 bool rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) { in rsdAllocationInit()
254 void rsdAllocationDestroy(const Context *rsc, Allocation *alloc) { in rsdAllocationDestroy()
284 void rsdAllocationResize(const Context *rsc, const Allocation *alloc, in rsdAllocationResize()
291 ((Allocation *)alloc)->mHal.drvState.mallocPtr = drv->mallocPtr; in rsdAllocationResize()
303 static void rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) { in rsdAllocationSyncFromFBO()
[all …]
DrsdRuntimeStubs.cpp46 static void SC_AllocationSyncAll2(Allocation *a, RsAllocationUsageType source) { in SC_AllocationSyncAll2()
51 static void SC_AllocationSyncAll(Allocation *a) { in SC_AllocationSyncAll()
56 static void SC_AllocationCopy1DRange(Allocation *dstAlloc, in SC_AllocationCopy1DRange()
60 Allocation *srcAlloc, in SC_AllocationCopy1DRange()
67 static void SC_AllocationCopy2DRange(Allocation *dstAlloc, in SC_AllocationCopy2DRange()
71 Allocation *srcAlloc, in SC_AllocationCopy2DRange()
87 static void SC_BindTexture(ProgramFragment *pf, uint32_t slot, Allocation *a) { in SC_BindTexture()
117 static void SC_BindFrameBufferObjectColorTarget(Allocation *a, uint32_t slot) { in SC_BindFrameBufferObjectColorTarget()
122 static void SC_BindFrameBufferObjectDepthTarget(Allocation *a) { in SC_BindFrameBufferObjectDepthTarget()
266 static void SC_DrawTextAlloc(Allocation *a, int x, int y) { in SC_DrawTextAlloc()
[all …]
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/
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, in loadImage()
119Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
120 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
126 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation()
[all …]
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, in loadImage()
118Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
119 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
125 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation()
177 mOffscreen = Allocation.createTyped(mRS, in initRS()
[all …]
/frameworks/base/graphics/java/android/renderscript/
DMesh.java81 Allocation[] mVertexBuffers;
82 Allocation[] mIndexBuffers;
104 public Allocation getVertexAllocation(int slot) { in getVertexAllocation()
125 public Allocation getIndexSetAllocation(int slot) { in getIndexSetAllocation()
150 mVertexBuffers = new Allocation[vtxCount]; in updateFromNative()
151 mIndexBuffers = new Allocation[idxCount]; in updateFromNative()
156 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative()
163 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative()
333 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount]; in create()
334 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()]; in create()
[all …]
DScript.java54 protected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v) { in forEach()
86 public void bindAllocation(Allocation va, int slot) { in bindAllocation()
185 protected Allocation mAllocation;
188 mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT); in init()
192 … mAllocation = Allocation.createSized(rs, mElement, dimx, Allocation.USAGE_SCRIPT | usages); in init()
206 public Allocation getAllocation() { in getAllocation()
DAllocation.java66 public class Allocation extends BaseObj { class
70 Allocation mAdaptedAllocation;
179 Allocation(int id, RenderScript rs, Type t, int usage) { in Allocation() method in Allocation
648 public void copy1DRangeFrom(int off, int count, Allocation data, int dataOff) { in copy1DRangeFrom()
723 Allocation data, int dataXoff, int dataYoff) { in copy2DRangeFrom()
868 … static public Allocation createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) { in createTyped()
877 return new Allocation(id, rs, type, usage); in createTyped()
891 static public Allocation createTyped(RenderScript rs, Type type, int usage) { in createTyped()
905 static public Allocation createTyped(RenderScript rs, Type type) { in createTyped()
921 static public Allocation createSized(RenderScript rs, Element e, in createSized()
[all …]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_alloc.java40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
45 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
48 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
51 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/
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, in loadImage()
136 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
137 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
192 mScreen = Allocation.createTyped(mRS, b.create(), in initBuffers()
193 Allocation.USAGE_GRAPHICS_TEXTURE | Allocation.USAGE_GRAPHICS_RENDER_TARGET); in initBuffers()
198 mScreenDepth = Allocation.createTyped(mRS, b.create(), in initBuffers()
[all …]
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
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, in createScript()
224 Allocation.MipmapControl.MIPMAP_NONE, in createScript()
225 Allocation.USAGE_SCRIPT); in createScript()
226 mOutPixelsAllocation = Allocation.createFromBitmap(mRS, mBitmapOut, in createScript()
227 Allocation.MipmapControl.MIPMAP_NONE, in createScript()
[all …]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBenchRS.java34 import android.renderscript.Allocation.MipmapControl;
112 private Allocation mTexTorus;
113 private Allocation mTexOpaque;
114 private Allocation mTexTransparent;
115 private Allocation mTexChecker;
116 private Allocation mTexGlobe;
127 private Allocation mTextAlloc;
507 private Allocation loadTextureRGB(int id) { in loadTextureRGB()
508 return Allocation.createFromBitmapResource(mRS, mRes, id, in loadTextureRGB()
509 Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadTextureRGB()
[all …]
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelRS.java51 private Allocation mGridImage;
52 private Allocation mAllocPV;
55 private Allocation mTextAlloc;
116 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage()
117Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
118 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
124 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation()
DSceneGraphRS.java59 private Allocation mGridImage;
60 private Allocation mAllocPV;
65 private Allocation mTextAlloc;
132 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage()
133Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage()
134 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage()
140 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation()
/frameworks/ex/carousel/java/com/android/ex/carousel/
DCarouselRS.java63 private static final Allocation.MipmapControl MIPMAP =
64 Allocation.MipmapControl.MIPMAP_NONE;
79 private Allocation[] mAllocationPool;
649 private Allocation allocationFromBitmap(Bitmap bitmap, Allocation.MipmapControl mipmap) in allocationFromBitmap()
652 Allocation allocation = Allocation.createFromBitmap(mRS, bitmap, in allocationFromBitmap()
653 mipmap, Allocation.USAGE_GRAPHICS_TEXTURE); in allocationFromBitmap()
657 private Allocation allocationFromPool(int n, Bitmap bitmap, Allocation.MipmapControl mipmap) in allocationFromPool()
661 Allocation[] tmp = new Allocation[count]; in allocationFromPool()
668 Allocation allocation = mAllocationPool[n % count]; in allocationFromPool()
850 Allocation texture = null; in setBackgroundTexture()
[all …]

123