Searched defs:alloc (Results 1 - 25 of 41) sorted by last modified time

12

/frameworks/rs/driver/
H A DrsdAllocation.cpp80 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
83 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
87 ptr += xoff * alloc->mHal.state.elementSizeBytes;
92 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
95 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
101 if (alloc->mHal.state.hasFaces) {
108 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { argument
109 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
115 if (alloc->mHal.state.hasFaces) {
121 for (uint32_t lod = 0; lod < alloc
149 UploadToTexture(const Context *rsc, const Allocation *alloc) argument
186 AllocateRenderTarget(const Context *rsc, const Allocation *alloc) argument
209 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument
232 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument
281 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
337 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
367 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
391 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
422 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
457 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
462 rsdAllocationInitSurfaceTexture(const Context *rsc, const Allocation *alloc) argument
468 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
492 rsdAllocationSetSurfaceTexture(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
545 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
568 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
574 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
592 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
619 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) argument
626 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
636 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument
658 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, uint32_t sizeBytes) argument
665 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
671 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
729 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument
749 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument
769 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
788 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
807 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
826 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
[all...]
H A DrsdIntrinsicBlur.cpp34 ObjectBaseRef<Allocation> alloc; member in struct:ConvolveParams
80 cp->alloc.set(data);
170 if (!cp->alloc.get()) {
174 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdIntrinsicConvolve3x3.cpp30 ObjectBaseRef<Allocation> alloc; member in struct:ConvolveParams
37 cp->alloc.set(data);
81 if (!cp->alloc.get()) {
85 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdIntrinsicConvolve5x5.cpp30 ObjectBaseRef<Allocation> alloc; member in struct:ConvolveParams
37 cp->alloc.set(data);
105 if (!cp->alloc.get()) {
109 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdIntrinsicYuvToRGB.cpp28 ObjectBaseRef<Allocation> alloc; member in struct:YuvParams
35 cp->alloc.set(data);
89 if (!cp->alloc.get()) {
93 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdMeshObj.cpp136 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct]; local
137 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
139 rsdAllocationSyncAll(rsc, alloc, RS_ALLOCATION_USAGE_SCRIPT);
146 Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[allocIndex]; local
147 DrvAllocation *drvAlloc = (DrvAllocation *)alloc->mHal.drv;
154 mAttribs[ct].ptr = (const uint8_t*)alloc->mHal.drvState.mallocPtrLOD0;
H A DrsdRuntimeStubs.cpp114 static void SC_AllocationIoSend(Allocation *alloc) { argument
116 rsdAllocationIoSend(rsc, alloc);
120 static void SC_AllocationIoReceive(Allocation *alloc) { argument
122 rsdAllocationIoReceive(rsc, alloc);
H A DrsdShader.cpp518 Allocation *alloc = mRSProgram->mHal.state.constants[ct]; local
520 if (!alloc) {
521 ALOGE("Attempting to set constants on shader id %u, but alloc at slot %u is not set",
527 DrvAllocation *adrv = (DrvAllocation *)alloc->mHal.drv;
/frameworks/rs/
H A DrsAdapter.cpp62 Allocation * alloc = static_cast<Allocation *>(valloc); local
63 a->setAllocation(alloc);
136 Allocation * alloc = static_cast<Allocation *>(valloc); local
137 a->setAllocation(alloc);
H A DrsAllocation.cpp46 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
355 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); local
361 uint32_t packedSize = alloc->getPackedSize();
365 ObjectBase::checkDelete(alloc);
370 alloc->setName(name.string(), name.size());
375 alloc->data(rsc, 0, 0, count, stream->getPtr() + stream->getPos(), dataSize);
377 alloc->unpackVec3Allocation(rsc, stream->getPtr() + stream->getPos(), dataSize);
381 return alloc;
493 Allocation *alloc = static_cast<Allocation *>(va); local
494 rsc->mHal.funcs.allocation.generateMipmaps(rsc, alloc);
553 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mips, (void *)ptr); local
639 Allocation *alloc = static_cast<Allocation *>(valloc); local
644 Allocation *alloc = static_cast<Allocation *>(valloc); local
649 Allocation *alloc = static_cast<Allocation *>(valloc); local
654 Allocation *alloc = static_cast<Allocation *>(valloc); local
659 Allocation *alloc = static_cast<Allocation *>(valloc); local
[all...]
H A DrsPath.cpp51 void Path::rasterize(const BezierSegment_t *s, uint32_t num, Allocation *alloc) { argument
H A DrsProgram.cpp139 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { argument
140 if (alloc != NULL) {
142 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but const count is %u",
147 if (alloc->getType() != mConstantTypes[slot].get()) {
148 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but types mismatch",
154 if (mConstants[slot].get() == alloc) {
160 mConstants[slot].set(alloc);
161 mHal.state.constants[slot] = alloc;
162 if (alloc) {
163 alloc
[all...]
H A DrsProgramVertex.cpp211 Allocation *alloc = Allocation::createAllocation(rsc, inputType.get(), local
213 pv->bindAllocation(rsc, alloc, 0);
215 mDefaultAlloc.set(alloc);
H A DrsScriptGroup.cpp221 Allocation * alloc = Allocation::createAllocation(rsc, local
223 l->mAlloc = alloc;
227 n->mOutputs[ct3]->mAlloc = alloc;
351 RsAllocation alloc) {
354 s->setInput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
358 RsAllocation alloc) {
361 s->setOutput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
350 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
357 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DAllocationAdapter.java28 AllocationAdapter(int id, RenderScript rs, Allocation alloc) { argument
29 super(id, rs, alloc.mType, alloc.mUsage);
30 mAdaptedAllocation = alloc;
H A DRenderScript.java211 native void rsnAllocationCopyToBitmap(int con, int alloc, Bitmap bmp); argument
212 synchronized void nAllocationCopyToBitmap(int alloc, Bitmap bmp) { argument
214 rsnAllocationCopyToBitmap(mContext, alloc, bmp);
218 native void rsnAllocationSyncAll(int con, int alloc, int src); argument
219 synchronized void nAllocationSyncAll(int alloc, int src) { argument
221 rsnAllocationSyncAll(mContext, alloc, src);
225 native void rsnAllocationGenerateMipmaps(int con, int alloc); argument
226 synchronized void nAllocationGenerateMipmaps(int alloc) { argument
228 rsnAllocationGenerateMipmaps(mContext, alloc);
230 native void rsnAllocationCopyFromBitmap(int con, int alloc, Bitma argument
231 nAllocationCopyFromBitmap(int alloc, Bitmap bmp) argument
347 rsnScriptBindAllocation(int con, int script, int alloc, int slot) argument
348 nScriptBindAllocation(int script, int alloc, int slot) argument
446 rsnScriptGroupSetInput(int con, int group, int kernel, int alloc) argument
447 nScriptGroupSetInput(int group, int kernel, int alloc) argument
452 rsnScriptGroupSetOutput(int con, int group, int kernel, int alloc) argument
453 nScriptGroupSetOutput(int group, int kernel, int alloc) argument
[all...]
/frameworks/support/renderscript/v8/jni/
H A Dandroid_renderscript_RenderScript.cpp332 nAllocationGenerateMipmaps(JNIEnv *_env, jobject _this, RsContext con, jint alloc) argument
334 LOG_API("nAllocationGenerateMipmaps, con(%p), a(%p)", con, (RsAllocation)alloc);
335 rsAllocationGenerateMipmaps(con, (RsAllocation)alloc);
384 nAllocationCopyFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
394 rsAllocation2DData(con, (RsAllocation)alloc, 0, 0,
402 nAllocationCopyToBitmap(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jobject jbitmap) argument
412 rsAllocationCopyToBitmap(con, (RsAllocation)alloc, pixels, GetBitmapSize(_env, jbitmap));
420 nAllocationData1D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jintArray data, int sizeBytes) argument
423 LOG_API("nAllocation1DData_i, con(%p), adapter(%p), offset(%i), count(%i), len(%i), sizeBytes(%i)", con, (RsAllocation)alloc, offset, count, len, sizeBytes);
425 rsAllocation1DData(con, (RsAllocation)alloc, offse
430 nAllocationData1D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jshortArray data, int sizeBytes) argument
440 nAllocationData1D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jbyteArray data, int sizeBytes) argument
450 nAllocationData1D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint count, jfloatArray data, int sizeBytes) argument
461 nAllocationElementData1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint offset, jint lod, jint compIdx, jbyteArray data, int sizeBytes) argument
471 nAllocationData2D_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jshortArray data, int sizeBytes) argument
482 nAllocationData2D_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jbyteArray data, int sizeBytes) argument
493 nAllocationData2D_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jintArray data, int sizeBytes) argument
504 nAllocationData2D_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint xoff, jint yoff, jint lod, jint face, jint w, jint h, jfloatArray data, int sizeBytes) argument
539 nAllocationRead_i(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jintArray data) argument
550 nAllocationRead_s(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jshortArray data) argument
561 nAllocationRead_b(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jbyteArray data) argument
572 nAllocationRead_f(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jfloatArray data) argument
590 nAllocationResize1D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX) argument
597 nAllocationResize2D(JNIEnv *_env, jobject _this, RsContext con, jint alloc, jint dimX, jint dimY) argument
606 nScriptBindAllocation(JNIEnv *_env, jobject _this, RsContext con, jint script, jint alloc, jint slot) argument
[all...]
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdAllocation.cpp40 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, argument
43 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
47 ptr += xoff * alloc->mHal.state.elementSizeBytes;
52 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
58 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { argument
61 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { argument
64 static void UploadToBufferObject(const Context *rsc, const Allocation *alloc) { argument
67 static size_t AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, argument
70 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv;
105 alloc
116 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument
174 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument
185 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument
209 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument
213 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument
248 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument
253 rsdAllocationInitSurfaceTexture(const Context *rsc, const Allocation *alloc) argument
257 rsdAllocationSetSurfaceTexture(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument
260 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument
263 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument
267 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
285 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
312 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes) argument
319 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
329 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument
351 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, uint32_t sizeBytes) argument
358 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
364 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument
422 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument
442 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument
462 mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
481 mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
500 mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) argument
519 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
[all...]
H A DrsdIntrinsicBlur.cpp32 ObjectBaseRef<Allocation> alloc; member in struct:ConvolveParams
78 cp->alloc.set(data);
166 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdIntrinsicConvolve3x3.cpp30 ObjectBaseRef<Allocation> alloc; member in struct:ConvolveParams
37 cp->alloc.set(data);
80 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdIntrinsicConvolve5x5.cpp30 ObjectBaseRef<Allocation> alloc; member in struct:ConvolveParams
37 cp->alloc.set(data);
105 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
H A DrsdIntrinsicYuvToRGB.cpp28 ObjectBaseRef<Allocation> alloc; member in struct:YuvParams
35 cp->alloc.set(data);
89 DrvAllocation *din = (DrvAllocation *)cp->alloc->mHal.drv;
/frameworks/support/renderscript/v8/rs_support/
H A DrsAdapter.cpp62 Allocation * alloc = static_cast<Allocation *>(valloc); local
63 a->setAllocation(alloc);
136 Allocation * alloc = static_cast<Allocation *>(valloc); local
137 a->setAllocation(alloc);
H A DrsAllocation.cpp43 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
336 Allocation *alloc = Allocation::createAllocation(rsc, type, RS_ALLOCATION_USAGE_SCRIPT); local
342 uint32_t packedSize = alloc->getPackedSize();
346 ObjectBase::checkDelete(alloc);
351 alloc->setName(name.string(), name.size());
356 alloc->data(rsc, 0, 0, count, stream->getPtr() + stream->getPos(), dataSize);
358 alloc->unpackVec3Allocation(rsc, stream->getPtr() + stream->getPos(), dataSize);
362 return alloc;
431 Allocation *alloc = static_cast<Allocation *>(va); local
432 rsc->mHal.funcs.allocation.generateMipmaps(rsc, alloc);
491 Allocation * alloc = Allocation::createAllocation(rsc, static_cast<Type *>(vtype), usages, mips, (void *)ptr); local
[all...]
H A DrsScriptGroup.cpp221 Allocation * alloc = Allocation::createAllocation(rsc, local
223 l->mAlloc = alloc;
227 n->mOutputs[ct3]->mAlloc = alloc;
351 RsAllocation alloc) {
354 s->setInput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
358 RsAllocation alloc) {
361 s->setOutput(rsc, (ScriptKernelID *)kid, (Allocation *)alloc);
350 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
357 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument

Completed in 3853 milliseconds

12