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

123

/frameworks/rs/driver/
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 DrsdElement.cpp29 void rsdElementDestroy(const Context *rsc, const Element *e) { argument
32 void rsdElementUpdateCachedObject(const Context *rsc, argument
H A DrsdSampler.cpp40 void rsdSamplerDestroy(const android::renderscript::Context *rsc, argument
44 void rsdSamplerUpdateCachedObject(const Context *rsc, argument
H A DrsdType.cpp40 void rsdTypeDestroy(const Context *rsc, const Type *t) { argument
43 void rsdTypeUpdateCachedObject(const Context *rsc, argument
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 DrsdScriptGroup.cpp31 bool rsdScriptGroupInit(const Context *rsc, ScriptGroupBase *sg) { argument
32 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
38 void rsdScriptGroupSetInput(const Context *rsc, const ScriptGroup *sg, argument
42 void rsdScriptGroupSetOutput(const Context *rsc, const ScriptGroup *sg, argument
46 void rsdScriptGroupExecute(const Context *rsc, const ScriptGroupBase *sg) { argument
52 void rsdScriptGroupDestroy(const Context *rsc, const ScriptGroupBase *sg) { argument
58 void rsdScriptGroupUpdateCachedObject(const Context *rsc, 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 DrsdGL.cpp152 void rsdGLShutdown(const Context *rsc) { argument
153 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
155 rsdGLSetSurface(rsc, 0, 0, nullptr);
177 void getConfigData(const Context *rsc, argument
204 if (rsc->mUserSurfaceConfig.alphaMin > 0) {
206 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin;
210 if (rsc->mUserSurfaceConfig.depthMin > 0) {
212 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin;
216 if (rsc->mDev->mForceSW) {
234 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/rs/
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 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 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.h37 void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) override;
41 void runForEach(Context *rsc,
50 void runReduce(Context *rsc, uint32_t slot,
54 virtual void serialize(Context *rsc, OStream *stream) const { } argument
56 static Type *createFromStream(Context *rsc, IStream *stream) { return nullptr; } argument
58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
H A DrsScriptGroup2.cpp14 void ScriptGroup2::execute(Context* rsc) { argument
15 if (rsc->mHal.funcs.scriptgroup.execute) {
16 rsc->mHal.funcs.scriptgroup.execute(rsc, this);
20 RsScriptGroup2 rsi_ScriptGroup2Create(Context* rsc, const char* name, argument
25 ScriptGroup2* group = new ScriptGroup2(rsc, name, cacheDir,
29 if (rsc->mHal.funcs.scriptgroup.init) {
30 rsc->mHal.funcs.scriptgroup.init(rsc, group);
H A DrsScriptGroup2.h16 ScriptGroup2(Context* rsc, const char* name, const char* cacheDir, argument
18 ScriptGroupBase(rsc), mClosures(closures, closures + numClosures),
23 virtual void execute(Context* rsc);
H A DrsApiContext.cpp31 Context *rsc = Context::createContext(dev, nullptr, ct, flags); local
32 if (rsc) {
33 rsc->setTargetSdkVersion(sdkVersion);
35 return rsc;
40 Context *rsc = static_cast<Context *>(con); local
41 rsc->setNativeLibDir(libDir, length);
51 Context *rsc = Context::createContext(dev, &sc); local
52 if (rsc) {
53 rsc->setTargetSdkVersion(sdkVersion);
54 rsc
[all...]
H A DrsClosure.h42 virtual void serialize(Context *rsc, OStream *stream) const {} argument
H A DrsScriptGroupBase.h11 ScriptGroupBase(Context* rsc) : ObjectBase(rsc) {} argument
14 virtual void serialize(Context *rsc, OStream *stream) const {} argument
25 virtual void execute(Context *rsc) = 0;
H A DrsApiFileA3D.cpp74 Context *rsc = static_cast<Context *>(con); local
75 FileA3D *fa3d = new FileA3D(rsc);
84 Context *rsc = static_cast<Context *>(con); local
86 FileA3D *fa3d = new FileA3D(rsc);
102 Context *rsc = static_cast<Context *>(con); local
107 fa3d = new FileA3D(rsc);
/frameworks/support/v8/renderscript/jni/
H A Dandroid_rscompat_usage_io_driver.cpp15 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { argument
34 Context *rsc = (Context *)rscR; local
57 IoGetBuffer(rsc, alloc, nw);
71 extern "C" void rscAllocationDestroy(const Context *rsc, Allocation *alloc) { argument
96 extern "C" void rscAllocationIoSend(const Context *rsc, Allocation *alloc) { argument
106 IoGetBuffer(rsc, alloc, nw);
/frameworks/rs/cpu_ref/
H A Drsd_cpu.h43 Context *rsc; member in struct:android::renderscript::RsdCpuReference::CpuTls

Completed in 207 milliseconds

123