Searched defs:rsc (Results 51 - 71 of 71) sorted by relevance

123

/frameworks/support/renderscript/v8/rs_support/
H A DrsScriptC_Lib.cpp82 time_t rsrTime(Context *rsc, Script *sc, time_t *timer) { argument
86 tm* rsrLocalTime(Context *rsc, Script *sc, tm *local, time_t *timer) { argument
93 pthread_mutex_lock(&rsc->gLibMutex);
96 pthread_mutex_unlock(&rsc->gLibMutex);
100 int64_t rsrUptimeMillis(Context *rsc, Script *sc) { argument
104 int64_t rsrUptimeNanos(Context *rsc, Script *sc) { argument
108 float rsrGetDt(Context *rsc, Script *sc) { argument
118 void rsrSetObject(const Context *rsc, const Script *sc, ObjectBase **dst, ObjectBase * src) { argument
131 void rsrClearObject(const Context *rsc, const Script *sc, ObjectBase **dst) { argument
140 bool rsrIsObject(const Context *rsc, cons argument
145 rsrToClient(Context *rsc, Script *sc, int cmdID, void *data, int len) argument
150 rsrToClientBlocking(Context *rsc, Script *sc, int cmdID, void *data, int len) argument
156 rsrForEach(Context *rsc, Script *sc, Script *target, Allocation *in, Allocation *out, const void *usr, uint32_t usrBytes, const RsScriptCall *call) argument
164 rsrAllocationSyncAll(Context *rsc, Script *sc, Allocation *a, RsAllocationUsageType usage) argument
168 rsrAllocationCopy1DRange(Context *rsc, Allocation *dstAlloc, uint32_t dstOff, uint32_t dstMip, uint32_t count, Allocation *srcAlloc, uint32_t srcOff, uint32_t srcMip) argument
179 rsrAllocationCopy2DRange(Context *rsc, Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstMip, uint32_t dstFace, uint32_t width, uint32_t height, Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcMip, uint32_t srcFace) argument
[all...]
H A DrsScriptGroup.cpp23 ScriptGroup::ScriptGroup(Context *rsc) : ObjectBase(rsc) { argument
177 ScriptGroup * ScriptGroup::create(Context *rsc, argument
192 ScriptGroup *sg = new ScriptGroup(rsc);
221 Allocation * alloc = Allocation::createAllocation(rsc,
233 if (rsc->mHal.funcs.scriptgroup.init) {
234 rsc->mHal.funcs.scriptgroup.init(rsc, sg);
239 void ScriptGroup::setInput(Context *rsc, ScriptKernelID *kid, Allocation *a) { argument
244 if (rsc
253 setOutput(Context *rsc, ScriptKernelID *kid, Allocation *a) argument
267 execute(Context *rsc) argument
316 serialize(Context *rsc, OStream *stream) const argument
333 rsi_ScriptGroupCreate(Context *rsc, RsScriptKernelID * kernels, size_t kernelsSize, RsScriptKernelID * src, size_t srcSize, RsScriptKernelID * dstK, size_t dstKSize, RsScriptFieldID * dstF, size_t dstFSize, const RsType * type, size_t typeSize) argument
350 rsi_ScriptGroupSetInput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
357 rsi_ScriptGroupSetOutput(Context *rsc, RsScriptGroup sg, RsScriptKernelID kid, RsAllocation alloc) argument
364 rsi_ScriptGroupExecute(Context *rsc, RsScriptGroup sg) argument
[all...]
H A DrsElement.cpp24 Element::Element(Context *rsc) : ObjectBase(rsc) { argument
95 void Element::serialize(Context *rsc, OStream *stream) const { argument
109 mFields[ct].e->serialize(rsc, stream);
113 Element *Element::createFromStream(Context *rsc, IStream *stream) { argument
129 return (Element *)Element::create(rsc,
149 subElems[ct] = Element::createFromStream(rsc, stream);
152 const Element *elem = Element::create(rsc, fieldCount, subElems, subElemNames,
222 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, argument
227 for (uint32_t ct=0; ct < rsc
254 createRef(Context *rsc, size_t count, const Element **ein, const char **nin, const size_t * lengths, const uint32_t *asin) argument
362 create(Context *rsc) argument
384 rsi_ElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) argument
393 rsi_ElementCreate2(Context *rsc, const RsElement * ein, size_t ein_length, const char ** names, size_t nameLengths_length, const size_t * nameLengths, const uint32_t * arraySizes, size_t arraySizes_length) argument
[all...]
H A DrsElement.h64 ObjectBaseRef<const Element> create(Context *rsc);
108 virtual void serialize(Context *rsc, OStream *stream) const;
110 static Element *createFromStream(Context *rsc, IStream *stream);
112 static ObjectBaseRef<const Element> createRef(Context *rsc,
117 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count,
123 static const Element* create(Context *rsc, argument
128 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize);
132 static const Element* create(Context *rsc, size_t count, argument
137 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin);
H A DrsType.cpp22 Type::Type(Context *rsc) : ObjectBase(rsc) { argument
158 void Type::serialize(Context *rsc, OStream *stream) const { argument
165 mElement->serialize(rsc, stream);
175 Type *Type::createFromStream(Context *rsc, IStream *stream) { argument
186 Element *elem = Element::createFromStream(rsc, stream);
196 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0 );
218 ObjectBaseRef<Type> Type::getTypeRef(Context *rsc, const Element *e, argument
223 TypeState * stc = &rsc->mStateType;
241 Type *nt = new Type(rsc);
258 cloneAndResize1D(Context *rsc, uint32_t dimX) const argument
263 cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const argument
307 rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mips, bool faces) argument
[all...]
H A DrsContext.cpp164 Context *rsc = static_cast<Context *>(vrsc); local
166 rsc->mNativeThreadId = gettid();
168 setpriority(PRIO_PROCESS, rsc->mNativeThreadId, /* ANDROID_PRIORITY_DISPLAY */ -4);
169 rsc->mThreadPriority = /* ANDROID_PRIORITY_DISPLAY */ -4;
171 rsc->props.mLogTimes = getProp("debug.rs.profile") != 0;
172 rsc->props.mLogScripts = getProp("debug.rs.script") != 0;
173 rsc->props.mLogObjects = getProp("debug.rs.object") != 0;
174 rsc->props.mLogShaders = getProp("debug.rs.shader") != 0;
175 rsc->props.mLogShadersAttr = getProp("debug.rs.shader.attributes") != 0;
176 rsc
208 Context *rsc = (Context *)ctx; local
242 Context * rsc = new Context(); local
252 Context * rsc = new Context(); local
395 rsi_ContextFinish(Context *rsc) argument
398 rsi_ContextBindRootScript(Context *rsc, RsScript vs) argument
403 rsi_ContextBindSampler(Context *rsc, uint32_t slot, RsSampler vs) argument
414 rsi_AssignName(Context *rsc, RsObjectBase obj, const char *name, size_t name_length) argument
419 rsi_ObjDestroy(Context *rsc, void *optr) argument
425 rsi_ContextSetPriority(Context *rsc, int32_t p) argument
429 rsi_ContextDump(Context *rsc, int32_t bits) argument
433 rsi_ContextDestroyWorker(Context *rsc) argument
437 rsi_ContextDestroy(Context *rsc) argument
445 rsi_ContextPeekMessage(Context *rsc, size_t * receiveLen, size_t receiveLen_length, uint32_t * subID, size_t subID_length) argument
451 rsi_ContextGetMessage(Context *rsc, void * data, size_t data_length, size_t * receiveLen, size_t receiveLen_length, uint32_t * subID, size_t subID_length) argument
459 rsi_ContextInitToClient(Context *rsc) argument
463 rsi_ContextDeinitToClient(Context *rsc) argument
474 Context *rsc = Context::createContext(dev, NULL); local
[all...]
H A DrsAllocation.cpp25 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, argument
27 : ObjectBase(rsc) {
38 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, argument
40 Allocation *a = new Allocation(rsc, type, usages, mc, ptr);
42 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) {
43 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
67 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { argument
68 rsc->mHal.funcs.allocation.syncAll(rsc, thi
71 data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
86 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
103 data(Context *rsc, 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, size_t sizeBytes) argument
108 read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
122 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument
136 read(Context *rsc, 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, size_t sizeBytes) argument
141 elementData(Context *rsc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument
169 elementData(Context *rsc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument
221 writePackedData(Context *rsc, const Type *type, uint8_t *dst, const uint8_t *src, bool dstPadded) argument
270 unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) argument
278 packVec3Allocation(Context *rsc, OStream *stream) const argument
293 serialize(Context *rsc, OStream *stream) const argument
319 createFromStream(Context *rsc, IStream *stream) argument
395 copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) argument
398 resize1D(Context *rsc, uint32_t dimX) argument
414 resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) argument
424 rsi_AllocationSyncAll(Context *rsc, RsAllocation va, RsAllocationUsageType src) argument
430 rsi_AllocationGenerateMipmaps(Context *rsc, RsAllocation va) argument
435 rsi_AllocationCopyToBitmap(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument
442 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
448 rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face, const void *data, size_t sizeBytes, size_t eoff) argument
454 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument
460 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
466 rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument
478 rsi_AllocationResize1D(Context *rsc, RsAllocation va, uint32_t dimX) argument
483 rsi_AllocationResize2D(Context *rsc, RsAllocation va, uint32_t dimX, uint32_t dimY) argument
488 rsi_AllocationCreateTyped(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, uint32_t usages, uint32_t ptr) argument
499 rsi_AllocationCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, const void *data, size_t sizeBytes, uint32_t usages) argument
521 rsi_AllocationCubeCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, const void *data, size_t sizeBytes, uint32_t usages) argument
559 rsi_AllocationCopy2DRange(Context *rsc, RsAllocation dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstMip, uint32_t dstFace, uint32_t width, uint32_t height, RsAllocation srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcMip, uint32_t srcFace) argument
[all...]
/frameworks/base/tools/aapt/
H A DXMLNode.cpp534 sp<AaptFile> rsc = new AaptFile(String8(), AaptGroupEntry(), String8()); local
535 status_t err = root->flatten(rsc, !keepComments, false);
539 err = outTree->setTo(rsc->getData(), rsc->getSize(), true);
/frameworks/rs/driver/
H A DrsdBcc.cpp50 bool rsdScriptInit(const Context *rsc, argument
57 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc);
58 //ALOGE("rsdScriptInit %p %p", rsc, script);
153 bool rsdInitIntrinsic(const Context *rsc, Script *s, RsScriptIntrinsicID iid, Element *e) { argument
162 drv->mIntrinsicData = rsdIntrinsic_Init(rsc, s, iid, &drv->mIntrinsicFuncs);
179 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv;
225 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv;
247 void rsdScriptInvokeForEachMtlsSetup(const Context *rsc, argument
268 rsc->setError(RS_ERROR_BAD_SCRIPT, "rsForEach called with null allocations");
301 Context *mrsc = (Context *)rsc;
330 rsdScriptLaunchThreads(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStruct *mtls) argument
389 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
[all...]
H A DrsdShader.cpp102 uint32_t RsdShader::getStateBasedShaderID(const Context *rsc) { argument
113 loadShader(rsc);
230 bool RsdShader::loadShader(const Context *rsc) { argument
238 if (rsc->props.mLogShaders) {
257 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf);
267 if (rsc->props.mLogShaders) {
355 void RsdShader::setUniform(const Context *rsc, const Element *field, const float *fd, argument
384 void RsdShader::setupSampler(const Context *rsc, const Sampler *s, const Allocation *tex) { argument
385 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
453 rsdGLCheckError(rsc, "Sample
456 setupTextures(const Context *rsc, RsdShaderCache *sc) argument
515 setupUserConstants(const Context *rsc, RsdShaderCache *sc, bool isFragment) argument
563 setup(const android::renderscript::Context *rsc, RsdShaderCache *sc) argument
[all...]
H A DrsdAllocation.cpp92 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument
108 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { argument
119 rsdGLCheckError(rsc, "Upload2DTexture 1 ");
146 rsdGLCheckError(rsc, "Upload2DTexture");
149 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { argument
174 Upload2DTexture(rsc, alloc, isFirstUpload);
183 rsdGLCheckError(rsc, "UploadToTexture");
186 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { argument
199 rsc->dumpDebug();
206 rsdGLCheckError(rsc, "AllocateRenderTarge
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
676 rsdAllocationData1D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstLod, uint32_t count, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcLod) argument
684 rsdAllocationData2D_alloc_script(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument
702 rsdAllocationData2D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument
719 rsdAllocationData3D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstZoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, uint32_t d, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcZoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) 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
826 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
[all...]
/frameworks/rs/
H A DrsElement.cpp24 Element::Element(Context *rsc) : ObjectBase(rsc) { argument
95 void Element::serialize(Context *rsc, OStream *stream) const { argument
109 mFields[ct].e->serialize(rsc, stream);
113 Element *Element::createFromStream(Context *rsc, IStream *stream) { argument
129 return (Element *)Element::create(rsc,
149 subElems[ct] = Element::createFromStream(rsc, stream);
152 const Element *elem = Element::create(rsc, fieldCount, subElems, subElemNames,
222 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, argument
227 for (uint32_t ct=0; ct < rsc
254 createRef(Context *rsc, size_t count, const Element **ein, const char **nin, const size_t * lengths, const uint32_t *asin) argument
362 create(Context *rsc) argument
384 rsi_ElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) argument
393 rsi_ElementCreate2(Context *rsc, const RsElement * ein, size_t ein_length, const char ** names, size_t nameLengths_length, const size_t * nameLengths, const uint32_t * arraySizes, size_t arraySizes_length) argument
[all...]
H A DrsElement.h64 ObjectBaseRef<const Element> create(Context *rsc);
108 virtual void serialize(Context *rsc, OStream *stream) const;
110 static Element *createFromStream(Context *rsc, IStream *stream);
112 static ObjectBaseRef<const Element> createRef(Context *rsc,
117 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count,
123 static const Element* create(Context *rsc, argument
128 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize);
132 static const Element* create(Context *rsc, size_t count, argument
137 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin);
H A DrsScriptC_LibGL.cpp49 void rsrBindTexture(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Allocation *a) { argument
52 pf->bindTexture(rsc, slot, a);
55 void rsrBindConstant(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Allocation *a) { argument
58 pf->bindAllocation(rsc, a, slot);
61 void rsrBindConstant(Context *rsc, Script *sc, ProgramVertex *pv, uint32_t slot, Allocation *a) { argument
64 pv->bindAllocation(rsc, a, slot);
67 void rsrBindSampler(Context *rsc, Script *sc, ProgramFragment *pf, uint32_t slot, Sampler *s) { argument
70 pf->bindSampler(rsc, slot, s);
73 void rsrBindProgramStore(Context *rsc, Script *sc, ProgramStore *ps) { argument
75 rsc
78 rsrBindProgramFragment(Context *rsc, Script *sc, ProgramFragment *pf) argument
83 rsrBindProgramVertex(Context *rsc, Script *sc, ProgramVertex *pv) argument
88 rsrBindProgramRaster(Context *rsc, Script *sc, ProgramRaster *pr) argument
93 rsrBindFrameBufferObjectColorTarget(Context *rsc, Script *sc, Allocation *a, uint32_t slot) argument
99 rsrBindFrameBufferObjectDepthTarget(Context *rsc, Script *sc, Allocation *a) argument
105 rsrClearFrameBufferObjectColorTarget(Context *rsc, Script *sc, uint32_t slot) argument
110 rsrClearFrameBufferObjectDepthTarget(Context *rsc, Script *sc) argument
115 rsrClearFrameBufferObjectTargets(Context *rsc, Script *sc) argument
124 rsrVpLoadProjectionMatrix(Context *rsc, Script *sc, const rsc_Matrix *m) argument
128 rsrVpLoadModelMatrix(Context *rsc, Script *sc, const rsc_Matrix *m) argument
132 rsrVpLoadTextureMatrix(Context *rsc, Script *sc, const rsc_Matrix *m) argument
136 rsrPfConstantColor(Context *rsc, Script *sc, ProgramFragment *pf, float r, float g, float b, float a) argument
142 rsrVpGetProjectionMatrix(Context *rsc, Script *sc, rsc_Matrix *m) argument
151 rsrDrawPath(Context *rsc, Script *sc, Path *sm) argument
159 rsrDrawMesh(Context *rsc, Script *sc, Mesh *sm) argument
167 rsrDrawMeshPrimitive(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex) argument
175 rsrDrawMeshPrimitiveRange(Context *rsc, Script *sc, Mesh *sm, uint32_t primIndex, uint32_t start, uint32_t len) argument
184 rsrMeshComputeBoundingBox(Context *rsc, Script *sc, Mesh *sm, float *minX, float *minY, float *minZ, float *maxX, float *maxY, float *maxZ) argument
203 rsrColor(Context *rsc, Script *sc, float r, float g, float b, float a) argument
208 rsrPrepareClear(Context *rsc, Script *sc) argument
213 rsrGetWidth(Context *rsc, Script *sc) argument
217 rsrGetHeight(Context *rsc, Script *sc) argument
221 rsrDrawTextAlloc(Context *rsc, Script *sc, Allocation *a, int x, int y) argument
228 rsrDrawText(Context *rsc, Script *sc, const char *text, int x, int y) argument
249 rsrMeasureTextAlloc(Context *rsc, Script *sc, Allocation *a, int32_t *left, int32_t *right, int32_t *top, int32_t *bottom) argument
260 rsrMeasureText(Context *rsc, Script *sc, const char *text, int32_t *left, int32_t *right, int32_t *top, int32_t *bottom) argument
268 rsrBindFont(Context *rsc, Script *sc, Font *font) argument
273 rsrFontColor(Context *rsc, Script *sc, float r, float g, float b, float a) argument
[all...]
H A DrsType.cpp22 Type::Type(Context *rsc) : ObjectBase(rsc) { argument
158 void Type::serialize(Context *rsc, OStream *stream) const { argument
165 mElement->serialize(rsc, stream);
175 Type *Type::createFromStream(Context *rsc, IStream *stream) { argument
186 Element *elem = Element::createFromStream(rsc, stream);
196 Type *type = Type::getType(rsc, elem, x, y, z, lod != 0, faces !=0 );
218 ObjectBaseRef<Type> Type::getTypeRef(Context *rsc, const Element *e, argument
223 TypeState * stc = &rsc->mStateType;
241 Type *nt = new Type(rsc);
258 cloneAndResize1D(Context *rsc, uint32_t dimX) const argument
263 cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const argument
307 rsi_TypeCreate(Context *rsc, RsElement _e, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mips, bool faces) argument
[all...]
H A DrsFont.h70 virtual void serialize(Context *rsc, OStream *stream) const { argument
76 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi,
120 Font(Context *rsc);
144 void init(Context *rsc);
145 void deinit(Context *rsc);
H A DrsAllocation.cpp28 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, argument
30 : ObjectBase(rsc) {
41 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, argument
43 Allocation *a = new Allocation(rsc, type, usages, mc, ptr);
45 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) {
46 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure");
72 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { argument
73 rsc->mHal.funcs.allocation.syncAll(rsc, thi
76 data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
91 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
108 data(Context *rsc, 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, size_t sizeBytes) argument
113 read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument
127 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument
141 read(Context *rsc, 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, size_t sizeBytes) argument
146 elementData(Context *rsc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument
174 elementData(Context *rsc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument
240 writePackedData(Context *rsc, const Type *type, uint8_t *dst, const uint8_t *src, bool dstPadded) argument
289 unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) argument
297 packVec3Allocation(Context *rsc, OStream *stream) const argument
312 serialize(Context *rsc, OStream *stream) const argument
338 createFromStream(Context *rsc, IStream *stream) argument
417 copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) argument
420 resize1D(Context *rsc, uint32_t dimX) argument
436 resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) argument
440 getSurfaceTextureID(const Context *rsc) argument
446 setSurfaceTexture(const Context *rsc, SurfaceTexture *st) argument
458 setSurface(const Context *rsc, RsNativeWindow sur) argument
471 ioSend(const Context *rsc) argument
475 ioReceive(const Context *rsc) argument
486 rsi_AllocationSyncAll(Context *rsc, RsAllocation va, RsAllocationUsageType src) argument
492 rsi_AllocationGenerateMipmaps(Context *rsc, RsAllocation va) argument
497 rsi_AllocationCopyToBitmap(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument
504 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument
510 rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face, const void *data, size_t sizeBytes, size_t eoff) argument
516 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument
522 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
528 rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument
540 rsi_AllocationResize1D(Context *rsc, RsAllocation va, uint32_t dimX) argument
545 rsi_AllocationResize2D(Context *rsc, RsAllocation va, uint32_t dimX, uint32_t dimY) argument
550 rsi_AllocationCreateTyped(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, uint32_t usages, uint32_t ptr) argument
561 rsi_AllocationCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, const void *data, size_t sizeBytes, uint32_t usages) argument
583 rsi_AllocationCubeCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, const void *data, size_t sizeBytes, uint32_t usages) argument
621 rsi_AllocationCopy2DRange(Context *rsc, RsAllocation dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstMip, uint32_t dstFace, uint32_t width, uint32_t height, RsAllocation srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcMip, uint32_t srcFace) argument
638 rsi_AllocationGetSurfaceTextureID(Context *rsc, RsAllocation valloc) argument
643 rsi_AllocationGetSurfaceTextureID2(Context *rsc, RsAllocation valloc, void *vst, size_t len) argument
648 rsi_AllocationSetSurface(Context *rsc, RsAllocation valloc, RsNativeWindow sur) argument
653 rsi_AllocationIoSend(Context *rsc, RsAllocation valloc) argument
658 rsi_AllocationIoReceive(Context *rsc, RsAllocation valloc) argument
[all...]
H A DrsContext.cpp209 Context *rsc = static_cast<Context *>(vrsc); local
211 rsc->mNativeThreadId = gettid();
212 setpriority(PRIO_PROCESS, rsc->mNativeThreadId, ANDROID_PRIORITY_DISPLAY);
213 rsc->mThreadPriority = ANDROID_PRIORITY_DISPLAY;
215 rsc->props.mLogTimes = getProp("debug.rs.profile") != 0;
216 rsc->props.mLogScripts = getProp("debug.rs.script") != 0;
217 rsc->props.mLogObjects = getProp("debug.rs.object") != 0;
218 rsc->props.mLogShaders = getProp("debug.rs.shader") != 0;
219 rsc->props.mLogShadersAttr = getProp("debug.rs.shader.attributes") != 0;
220 rsc
396 Context *rsc = (Context *)ctx; local
430 Context * rsc = new Context(); local
440 Context * rsc = new Context(); local
681 rsi_ContextFinish(Context *rsc) argument
684 rsi_ContextBindRootScript(Context *rsc, RsScript vs) argument
689 rsi_ContextBindSampler(Context *rsc, uint32_t slot, RsSampler vs) argument
700 rsi_ContextBindProgramStore(Context *rsc, RsProgramStore vpfs) argument
705 rsi_ContextBindProgramFragment(Context *rsc, RsProgramFragment vpf) argument
710 rsi_ContextBindProgramRaster(Context *rsc, RsProgramRaster vpr) argument
715 rsi_ContextBindProgramVertex(Context *rsc, RsProgramVertex vpv) argument
720 rsi_ContextBindFont(Context *rsc, RsFont vfont) argument
725 rsi_AssignName(Context *rsc, RsObjectBase obj, const char *name, size_t name_length) argument
730 rsi_ObjDestroy(Context *rsc, void *optr) argument
736 rsi_ContextPause(Context *rsc) argument
740 rsi_ContextResume(Context *rsc) argument
744 rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, RsNativeWindow sur) argument
748 rsi_ContextSetPriority(Context *rsc, int32_t p) argument
752 rsi_ContextDump(Context *rsc, int32_t bits) argument
756 rsi_ContextDestroyWorker(Context *rsc) argument
760 rsi_ContextDestroy(Context *rsc) argument
768 rsi_ContextPeekMessage(Context *rsc, size_t * receiveLen, size_t receiveLen_length, uint32_t * subID, size_t subID_length) argument
774 rsi_ContextGetMessage(Context *rsc, void * data, size_t data_length, size_t * receiveLen, size_t receiveLen_length, uint32_t * subID, size_t subID_length) argument
782 rsi_ContextInitToClient(Context *rsc) argument
786 rsi_ContextDeinitToClient(Context *rsc) argument
797 Context *rsc = Context::createContext(dev, NULL); local
809 Context *rsc = Context::createContext(dev, &sc); local
[all...]
H A DrsFont.cpp34 Font::Font(Context *rsc) : ObjectBase(rsc), mCachedGlyphs(NULL) { argument
294 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, argument
296 rsc->mStateFont.checkInit();
297 Vector<Font*> &activeFonts = rsc->mStateFont.mActiveFonts;
306 Font *newFont = new Font(rsc);
310 rsc->mStateFont.precacheLatin(newFont);
392 void FontState::init(Context *rsc) { argument
393 mRSC = rsc;
812 void FontState::deinit(Context *rsc) { argument
859 rsi_FontCreateFromFile(Context *rsc, char const *name, size_t name_length, float fontSize, uint32_t dpi) argument
869 rsi_FontCreateFromMemory(Context *rsc, char const *name, size_t name_length, float fontSize, uint32_t dpi, const void *data, size_t data_length) argument
[all...]
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdAllocation.cpp52 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
116 bool rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) { argument
124 size_t allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), NULL);
139 size_t verifySize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), ptr);
174 void rsdAllocationDestroy(const Context *rsc, Allocation *alloc) { argument
185 void rsdAllocationResize(const Context *rsc, cons 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
369 rsdAllocationData1D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstLod, uint32_t count, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcLod) argument
377 rsdAllocationData2D_alloc_script(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument
395 rsdAllocationData2D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument
412 rsdAllocationData3D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstZoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, uint32_t d, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcZoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) 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
519 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument
[all...]
H A DrsdBcc.cpp62 bool rsdScriptInit(const Context *rsc, argument
69 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc);
70 //ALOGE("rsdScriptInit %p %p", rsc, script);
339 bool rsdInitIntrinsic(const Context *rsc, Script *s, RsScriptIntrinsicID iid, Element *e) { argument
348 drv->mIntrinsicData = rsdIntrinsic_Init(rsc, s, iid, &drv->mIntrinsicFuncs);
365 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv;
396 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv;
422 void rsdScriptInvokeForEachMtlsSetup(const Context *rsc, argument
443 rsc->setError(RS_ERROR_BAD_SCRIPT, "rsForEach called with null allocations");
476 Context *mrsc = (Context *)rsc;
505 rsdScriptLaunchThreads(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStruct *mtls) argument
562 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument
[all...]

Completed in 385 milliseconds

123