Searched defs:rsc (Results 1 - 25 of 55) 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, ScriptGroup *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 ScriptGroup *sg) { argument
51 void rsdScriptGroupDestroy(const Context *rsc, const ScriptGroup *sg) { argument
56 void rsdScriptGroupUpdateCachedObject(const Context *rsc, argument
H A DrsdCore.cpp50 static void Shutdown(Context *rsc);
51 static void SetPriority(const Context *rsc, int32_t priority);
198 Context *rsc = (Context*) c; local
199 rsc->mHal.funcs = FunctionTable;
206 rsc->mHal.drv = dc;
208 dc->mCpuRef = RsdCpuReference::create(rsc, version_major, version_minor,
212 rsc->mHal.drv = NULL;
229 rsc->mHal.funcs.allocRuntimeMem,
230 rsc->mHal.funcs.freeRuntimeMem);
238 void SetPriority(const Context *rsc, int32_ argument
250 Shutdown(Context *rsc) argument
[all...]
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, NULL);
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...]
H A DrsdPath.cpp65 static void cleanup(const Context *rsc, const Path *m) { argument
72 bool rsdPathInitStatic(const Context *rsc, const Path *m, argument
75 cleanup(rsc, m);
83 bool rsdPathInitDynamic(const Context *rsc, const Path *m) { argument
88 void rsdPathDraw(const Context *rsc, const Path *m) { argument
94 drv->draw((Context *)rsc);
98 void rsdPathDestroy(const Context *rsc, const Path *m) { argument
99 cleanup(rsc, m);
135 void DrvPathStatic::draw(Context *rsc) { argument
143 if (!rsc
[all...]
H A DrsdShaderCache.cpp41 void RsdShaderCache::updateUniformArrayData(const Context *rsc, RsdShader *prog, uint32_t linkedID, argument
56 if (rsc->props.mLogShaders) {
86 bool RsdShaderCache::setup(const Context *rsc) { argument
91 if (!link(rsc)) {
96 mFragment->setup(rsc, this);
100 mVertex->setup(rsc, this);
107 bool RsdShaderCache::link(const Context *rsc) { argument
112 uint32_t vID = vtx->getStateBasedShaderID(rsc);
113 uint32_t fID = frag->getStateBasedShaderID(rsc);
127 rsdGLCheckError(rsc, "RsdShaderCach
[all...]
/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 runForEach(Context *rsc,
62 virtual void serialize(Context *rsc, OStream *stream) const { } argument
64 static Type *createFromStream(Context *rsc, IStream *stream) { return NULL; } argument
66 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
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.h66 virtual void serialize(Context *rsc, OStream *stream) const;
68 static Sampler *createFromStream(Context *rsc, IStream *stream);
91 void init(Context *rsc) { argument
93 void deinit(Context *rsc) { argument
H A DrsAdapter.cpp24 Adapter1D::Adapter1D(Context *rsc) : ObjectBase(rsc) { argument
28 Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) { argument
40 void Adapter1D::data(Context *rsc, uint32_t x, uint32_t count, const void *data, size_t sizeBytes) { argument
41 mAllocation->data(rsc, x, mY, mLOD, mFace, count, 1, data, sizeBytes, 0);
44 void Adapter1D::serialize(Context *rsc, OStream *stream) const { argument
47 Adapter1D *Adapter1D::createFromStream(Context *rsc, IStream *stream) { argument
54 RsAdapter1D rsi_Adapter1DCreate(Context *rsc) { argument
55 Adapter1D *a = new Adapter1D(rsc);
60 rsi_Adapter1DBindAllocation(Context *rsc, RsAdapter1D va, RsAllocation valloc) argument
66 rsi_Adapter1DSetConstraint(Context *rsc, RsAdapter1D va, RsDimension dim, uint32_t value) argument
95 Adapter2D(Context *rsc) argument
99 Adapter2D(Context *rsc, Allocation *a) argument
111 data(Context *rsc, uint32_t x, uint32_t y, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument
117 serialize(Context *rsc, OStream *stream) const argument
120 createFromStream(Context *rsc, IStream *stream) argument
128 rsi_Adapter2DCreate(Context *rsc) argument
134 rsi_Adapter2DBindAllocation(Context *rsc, RsAdapter2D va, RsAllocation valloc) argument
140 rsi_Adapter2DSetConstraint(Context *rsc, RsAdapter2D va, RsDimension dim, uint32_t value) argument
[all...]
/frameworks/rs/cpu_ref/
H A Drsd_cpu.h63 Context *rsc; member in struct:android::renderscript::RsdCpuReference::CpuTls

Completed in 181 milliseconds

123