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

123

/frameworks/rs/driver/
H A DrsdSampler.cpp38 void rsdSamplerDestroy(const android::renderscript::Context *rsc, argument
H A DrsdProgramRaster.cpp35 void rsdProgramRasterSetActive(const Context *rsc, const ProgramRaster *pr) { argument
49 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid cull type");
H A DrsdMesh.cpp30 bool rsdMeshInit(const Context *rsc, const Mesh *m) { argument
36 drv = new RsdMeshObj(rsc, m);
38 return drv->init(rsc);
41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { argument
43 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
44 if (!dc->gl.shaderCache->setup(rsc)) {
49 drv->renderPrimitiveRange(rsc, primIndex, start, len);
53 void rsdMeshDestroy(const Context *rsc, const Mesh *m) { argument
H A DrsdFrameBuffer.cpp32 void setDepthAttachment(const Context *rsc, const FBOCache *fb) { argument
40 rsdAllocationSyncAll(rsc, fb->mHal.state.depthTarget,
47 void setColorAttachment(const Context *rsc, const FBOCache *fb) { argument
56 rsdAllocationSyncAll(rsc, fb->mHal.state.colorTargets[i],
64 bool rsdFrameBufferInit(const Context *rsc, const FBOCache *fb) { argument
71 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
77 void rsdFrameBufferSetActive(const Context *rsc, const FBOCache *fb) { argument
78 setDepthAttachment(rsc, fb);
79 setColorAttachment(rsc, fb);
90 fbo->setActive(rsc);
93 rsdFrameBufferDestroy(const Context *rsc, const FBOCache *fb) argument
[all...]
H A DrsdFrameBufferObj.cpp49 void RsdFrameBufferObj::checkError(const Context *rsc) { argument
56 rsc->setError(RS_ERROR_BAD_VALUE,
60 rsc->setError(RS_ERROR_BAD_VALUE,
64 rsc->setError(RS_ERROR_BAD_VALUE,
68 rsc->setError(RS_ERROR_BAD_VALUE,
125 void RsdFrameBufferObj::setActive(const Context *rsc) { argument
126 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
130 rsdGLSetInternalSurface(rsc, mColorTargets[0]->wnd);
149 checkError(rsc);
152 rsdGLSetInternalSurface(rsc, d
[all...]
H A DrsdProgramStore.cpp40 bool rsdProgramStoreInit(const Context *rsc, const ProgramStore *ps) { argument
114 rsc->setError(RS_ERROR_FATAL_DRIVER, "Unknown blend src mode.");
144 rsc->setError(RS_ERROR_FATAL_DRIVER, "Unknown blend dst mode.");
156 void rsdProgramStoreSetActive(const Context *rsc, const ProgramStore *ps) { argument
171 if (rsc->mUserSurfaceConfig.depthMin > 0) {
185 if (rsc->mUserSurfaceConfig.stencilMin > 0) {
199 void rsdProgramStoreDestroy(const Context *rsc, const ProgramStore *ps) { argument
H A DrsdProgram.cpp36 bool rsdProgramVertexInit(const Context *rsc, const ProgramVertex *pv, argument
47 static void SyncProgramConstants(const Context *rsc, const Program *p) { argument
55 rsdAllocationSyncAll(rsc, a, RS_ALLOCATION_USAGE_SCRIPT);
60 void rsdProgramVertexSetActive(const Context *rsc, const ProgramVertex *pv) { argument
61 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
63 SyncProgramConstants(rsc, pv);
67 void rsdProgramVertexDestroy(const Context *rsc, const ProgramVertex *pv) { argument
68 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
73 if (rsc->props.mLogShaders) {
83 bool rsdProgramFragmentInit(const Context *rsc, cons argument
94 rsdProgramFragmentSetActive(const Context *rsc, const ProgramFragment *pf) argument
101 rsdProgramFragmentDestroy(const Context *rsc, const ProgramFragment *pf) argument
[all...]
H A DrsdScriptGroup.cpp33 bool rsdScriptGroupInit(const android::renderscript::Context *rsc, argument
38 void rsdScriptGroupSetInput(const android::renderscript::Context *rsc, argument
44 void rsdScriptGroupSetOutput(const android::renderscript::Context *rsc, argument
50 void rsdScriptGroupExecute(const android::renderscript::Context *rsc, argument
111 RsdHal * dc = (RsdHal *)rsc->mHal.drv;
119 rsdScriptInvokeForEachMtlsSetup(rsc, ins[ct], outs[ct], NULL, 0, NULL, &mtls);
139 rsdScriptLaunchThreads(rsc, s, slot, ins[ct], outs[ct], NULL, 0, NULL, &mtls);
144 void rsdScriptGroupDestroy(const android::renderscript::Context *rsc, argument
H A DrsdCore.cpp44 static void Shutdown(Context *rsc);
45 static void SetPriority(const Context *rsc, int32_t priority);
163 Context *rsc = static_cast<Context *>(vrsc); local
164 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
169 //ALOGV("RS helperThread starting %p idx=%i", rsc, idx);
184 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx],
198 //ALOGV("RS helperThread exited %p idx=%i", rsc, idx);
202 void rsdLaunchThreads(Context *rsc, WorkerCallback_t cbk, void *data) { argument
203 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
218 Context *rsc local
292 SetPriority(const Context *rsc, int32_t priority) argument
302 Shutdown(Context *rsc) argument
[all...]
H A DrsdGL.cpp154 void rsdGLShutdown(const Context *rsc) { argument
155 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
157 rsdGLSetSurface(rsc, 0, 0, NULL);
179 void getConfigData(const Context *rsc, argument
206 if (rsc->mUserSurfaceConfig.alphaMin > 0) {
208 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin;
212 if (rsc->mUserSurfaceConfig.depthMin > 0) {
214 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin;
218 if (rsc->mDev->mForceSW) {
236 bool rsdGLInit(const Context *rsc) {
[all...]
H A DrsdMeshObj.cpp32 RsdMeshObj::RsdMeshObj(const Context *rsc, const Mesh *rsMesh) { argument
71 bool RsdMeshObj::init(const Context *rsc) { argument
73 updateGLPrimitives(rsc);
128 void RsdMeshObj::renderPrimitiveRange(const Context *rsc, uint32_t primIndex, argument
131 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid mesh or parameters");
139 rsdAllocationSyncAll(rsc, alloc, RS_ALLOCATION_USAGE_SCRIPT);
159 va.setup(rsc);
165 rsdAllocationSyncAll(rsc, idxAlloc, RS_ALLOCATION_USAGE_SCRIPT);
181 rsdGLCheckError(rsc, "Mesh::renderPrimitiveRange");
184 void RsdMeshObj::updateGLPrimitives(const Context *rsc) { argument
[all...]
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdSampler.cpp32 void rsdSamplerDestroy(const android::renderscript::Context *rsc, argument
H A DrsdScriptGroup.cpp33 bool rsdScriptGroupInit(const android::renderscript::Context *rsc, argument
38 void rsdScriptGroupSetInput(const android::renderscript::Context *rsc, argument
44 void rsdScriptGroupSetOutput(const android::renderscript::Context *rsc, argument
50 void rsdScriptGroupExecute(const android::renderscript::Context *rsc, argument
99 RsdHal * dc = (RsdHal *)rsc->mHal.drv;
107 rsdScriptInvokeForEachMtlsSetup(rsc, ins[ct], outs[ct], NULL, 0, NULL, &mtls);
126 rsdScriptLaunchThreads(rsc, s, slot, ins[ct], outs[ct], NULL, 0, NULL, &mtls);
131 void rsdScriptGroupDestroy(const android::renderscript::Context *rsc, argument
/frameworks/rs/
H A DrsProgramBase.h29 ProgramBase(Context *rsc) : ObjectBase(rsc) { argument
H A DrsAnimation.cpp24 void Animation::serialize(Context *rsc, OStream *stream) const { argument
27 Animation *Animation::createFromStream(Context *rsc, IStream *stream) { argument
32 Animation::Animation(Context *rsc) : ObjectBase(rsc)
47 Animation * Animation::create(Context *rsc,
53 rsc->setError(RS_ERROR_BAD_VALUE, "Animations require more than 2 values.");
56 Animation *a = new Animation(rsc);
58 rsc->setError(RS_ERROR_OUT_OF_MEMORY);
68 rsc->setError(RS_ERROR_OUT_OF_MEMORY);
122 RsAnimation rsi_AnimationCreate(Context *rsc, argument
[all...]
H A DrsDevice.cpp30 void Device::addContext(Context *rsc) { argument
31 mContexts.push(rsc);
34 void Device::removeContext(Context *rsc) { argument
36 if (mContexts[idx] == rsc) {
H A DrsFBOCache.cpp39 void FBOCache::init(Context *rsc) { argument
40 rsc->mHal.funcs.framebuffer.init(rsc, this);
43 void FBOCache::deinit(Context *rsc) { argument
44 rsc->mHal.funcs.framebuffer.destroy(rsc, this);
47 void FBOCache::bindColorTarget(Context *rsc, Allocation *a, uint32_t slot) { argument
63 void FBOCache::bindDepthTarget(Context *rsc, Allocation *a) { argument
85 void FBOCache::setup(Context *rsc) { argument
90 rsc
[all...]
H A DrsScriptC.h41 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len);
45 virtual void runForEach(Context *rsc,
53 virtual void serialize(Context *rsc, OStream *stream) const { } argument
55 static Type *createFromStream(Context *rsc, IStream *stream) { return NULL; } argument
57 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
H A DrsObjectBase.cpp25 ObjectBase::ObjectBase(Context *rsc) { argument
28 mRSC = rsc;
36 rsAssert(rsc);
168 //ALOGV("calling add rsc %p", mRSC);
179 //ALOGV("calling remove rsc %p", mRSC);
199 void ObjectBase::zeroAllUserRef(Context *rsc) { argument
200 if (rsc->props.mLogObjects) {
205 const ObjectBase * o = rsc->mObjHead;
210 o = rsc->mObjHead;
218 if (rsc
224 freeAllChildren(Context *rsc) argument
246 dumpAll(Context *rsc) argument
260 isValid(const Context *rsc, const ObjectBase *obj) argument
[all...]
H A DrsPath.cpp24 Path::Path(Context *rsc) : ObjectBase(rsc) { argument
27 Path::Path(Context *rsc, RsPathPrimitive pp, bool isStatic, argument
29 : ObjectBase(rsc) {
36 rsc->mHal.funcs.path.initStatic(rsc, this, vtx, loops);
41 Path::Path(Context *rsc, uint32_t vertexBuffersCount, uint32_t primitivesCount) argument
42 : ObjectBase(rsc) {
59 void Path::render(Context *rsc) { argument
62 void Path::serialize(Context *rsc, OStrea argument
73 rsi_PathCreate(Context *rsc, RsPathPrimitive pp, bool isStatic, RsAllocation vtx, RsAllocation loops, float quality) argument
[all...]
H A DrsProgramRaster.cpp24 ProgramRaster::ProgramRaster(Context *rsc, bool pointSprite, RsCullMode cull) argument
25 : ProgramBase(rsc) {
30 rsc->mHal.funcs.raster.init(rsc, this);
46 void ProgramRaster::setup(const Context *rsc, ProgramRasterState *state) { argument
53 rsc->mHal.funcs.raster.setActive(rsc, this);
56 void ProgramRaster::serialize(Context *rsc, OStream *stream) const { argument
59 ProgramRaster *ProgramRaster::createFromStream(Context *rsc, IStream *stream) { argument
69 void ProgramRasterState::init(Context *rsc) { argument
73 deinit(Context *rsc) argument
78 getProgramRaster(Context *rsc, bool pointSprite, RsCullMode cull) argument
106 rsi_ProgramRasterCreate(Context * rsc, bool pointSprite, RsCullMode cull) argument
[all...]
H A DrsSampler.cpp25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) { argument
30 Sampler::Sampler(Context *rsc, argument
36 float aniso) : ObjectBase(rsc) {
71 void Sampler::serialize(Context *rsc, OStream *stream) const { argument
74 Sampler *Sampler::createFromStream(Context *rsc, IStream *stream) { argument
78 ObjectBaseRef<Sampler> Sampler::getSampler(Context *rsc, argument
87 for (uint32_t ct = 0; ct < rsc->mStateSampler.mAllSamplers.size(); ct++) {
88 Sampler *existing = rsc->mStateSampler.mAllSamplers[ct];
101 Sampler *s = new Sampler(rsc, magFilte
116 rsi_SamplerCreate(Context * rsc, RsSamplerValue magFilter, RsSamplerValue minFilter, RsSamplerValue wrapS, RsSamplerValue wrapT, RsSamplerValue wrapR, float aniso) argument
[all...]
H A DrsSampler.h64 virtual void serialize(Context *rsc, OStream *stream) const;
66 static Sampler *createFromStream(Context *rsc, IStream *stream);
89 void init(Context *rsc) { argument
91 void deinit(Context *rsc) { argument
/frameworks/support/renderscript/v8/rs_support/
H A DrsDevice.cpp30 void Device::addContext(Context *rsc) { argument
31 mContexts.push(rsc);
34 void Device::removeContext(Context *rsc) { argument
36 if (mContexts[idx] == rsc) {
H A DrsScriptC.h37 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len);
41 virtual void runForEach(Context *rsc,
49 virtual void serialize(Context *rsc, OStream *stream) const { } argument
51 static Type *createFromStream(Context *rsc, IStream *stream) { return NULL; } argument
53 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,

Completed in 54 milliseconds

123