/frameworks/base/libs/rs/ |
H A D | rsFBOCache.h | 26 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 D | rsMesh.h | 47 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 D | rsProgram.h | 43 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 D | rs_hal.h | 29 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 D | rsAllocation.cpp | 24 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 D | rsScript.h | 72 void setSlot(uint32_t slot, Allocation *a); 79 const Allocation * ain, 80 Allocation * aout, 89 ObjectBaseRef<Allocation> *mSlots;
|
H A D | rsAdapter.h | 33 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 D | rsFBOCache.cpp | 29 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 D | rsRuntime.h | 32 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 D | rsScriptC.h | 42 const Allocation *ptrToAllocation(const void *) const; 50 const Allocation * ain, 51 Allocation * aout,
|
H A D | rsAllocation.h | 36 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 D | rsProgram.cpp | 40 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 D | rsScriptC_Lib.cpp | 157 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 D | rsdAllocation.h | 57 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 D | rsdAllocation.cpp | 76 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 D | rsdRuntimeStubs.cpp | 42 // 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 D | UT_alloc.java | 40 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 D | Script.java | 54 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 D | Mesh.java | 81 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 D | FBOSyncRS.java | 54 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 D | FBOTestRS.java | 54 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 D | LaunchTest.java | 24 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 D | Mandelbrot.java | 24 private Allocation mAllocationXY; 34 mAllocationXY = Allocation.createTyped(rs, tb.create());
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
H A D | ShadersTestRS.java | 20 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 D | ImageProcessingActivity.java | 27 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...] |