Home
last modified time | relevance | path

Searched refs:drv (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/libs/rs/driver/
DrsdProgramStore.cpp41 DrvProgramStore *drv = (DrvProgramStore *)calloc(1, sizeof(DrvProgramStore)); in rsdProgramStoreInit() local
42 if (drv == NULL) { in rsdProgramStoreInit()
46 ps->mHal.drv = drv; in rsdProgramStoreInit()
47 drv->depthTestEnable = true; in rsdProgramStoreInit()
51 drv->depthTestEnable = false; in rsdProgramStoreInit()
52 drv->depthFunc = GL_ALWAYS; in rsdProgramStoreInit()
55 drv->depthFunc = GL_LESS; in rsdProgramStoreInit()
58 drv->depthFunc = GL_LEQUAL; in rsdProgramStoreInit()
61 drv->depthFunc = GL_GREATER; in rsdProgramStoreInit()
64 drv->depthFunc = GL_GEQUAL; in rsdProgramStoreInit()
[all …]
DrsdAllocation.cpp79 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in Update2DTexture() local
81 rsAssert(drv->textureID); in Update2DTexture()
82 RSD_CALL_GL(glBindTexture, drv->glTarget, drv->textureID); in Update2DTexture()
88 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
93 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in Upload2DTexture() local
95 RSD_CALL_GL(glBindTexture, drv->glTarget, drv->textureID); in Upload2DTexture()
106 const uint8_t *p = (const uint8_t *)drv->mallocPtr; in Upload2DTexture()
115 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture()
118 0, drv->glFormat, drv->glType, p); in Upload2DTexture()
123 drv->glFormat, drv->glType, p); in Upload2DTexture()
[all …]
DrsdProgram.cpp38 RsdShader *drv = new RsdShader(pv, GL_VERTEX_SHADER, shader, shaderLen); in rsdProgramVertexInit() local
39 pv->mHal.drv = drv; in rsdProgramVertexInit()
41 return drv->createShader(); in rsdProgramVertexInit()
50 DrvAllocation *drvAlloc = (DrvAllocation *)a->mHal.drv; in SyncProgramConstants()
58 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramVertexSetActive()
61 dc->gl.shaderCache->setActiveVertex((RsdShader*)pv->mHal.drv); in rsdProgramVertexSetActive()
65 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramVertexDestroy()
67 RsdShader *drv = NULL; in rsdProgramVertexDestroy() local
68 if(pv->mHal.drv) { in rsdProgramVertexDestroy()
69 drv = (RsdShader*)pv->mHal.drv; in rsdProgramVertexDestroy()
[all …]
DrsdBcc.cpp81 DrvScript *drv = (DrvScript *)calloc(1, sizeof(DrvScript)); in rsdScriptInit() local
82 if (drv == NULL) { in rsdScriptInit()
85 script->mHal.drv = drv; in rsdScriptInit()
87 drv->mBccScript = bccCreateScript(); in rsdScriptInit()
89 drv->mScriptText = bitcode; in rsdScriptInit()
90 drv->mScriptTextLength = bitcodeSize; in rsdScriptInit()
93 drv->ME = new bcinfo::MetadataExtractor((const char*)drv->mScriptText, in rsdScriptInit()
94 drv->mScriptTextLength); in rsdScriptInit()
95 if (!drv->ME->extract()) { in rsdScriptInit()
102 if (bccRegisterSymbolCallback(drv->mBccScript, &rsdLookupRuntimeStub, script) != 0) { in rsdScriptInit()
[all …]
DrsdMesh.cpp31 RsdMeshObj *drv = NULL; in rsdMeshInit() local
32 if(m->mHal.drv) { in rsdMeshInit()
33 drv = (RsdMeshObj*)m->mHal.drv; in rsdMeshInit()
34 delete drv; in rsdMeshInit()
36 drv = new RsdMeshObj(rsc, m); in rsdMeshInit()
37 m->mHal.drv = drv; in rsdMeshInit()
38 return drv->init(); in rsdMeshInit()
42 if(m->mHal.drv) { in rsdMeshDraw()
43 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdMeshDraw()
48 RsdMeshObj *drv = (RsdMeshObj*)m->mHal.drv; in rsdMeshDraw() local
[all …]
DrsdFrameBuffer.cpp33 RsdFrameBufferObj *fbo = (RsdFrameBufferObj*)fb->mHal.drv; in setDepthAttachment()
37 depth = (DrvAllocation *)fb->mHal.state.depthTarget->mHal.drv; in setDepthAttachment()
48 RsdFrameBufferObj *fbo = (RsdFrameBufferObj*)fb->mHal.drv; in setColorAttachment()
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv; in setColorAttachment()
69 fb->mHal.drv = fbo; in rsdFrameBufferInit()
71 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdFrameBufferInit()
81 RsdFrameBufferObj *fbo = (RsdFrameBufferObj *)fb->mHal.drv; in rsdFrameBufferSetActive()
94 RsdFrameBufferObj *fbo = (RsdFrameBufferObj *)fb->mHal.drv; in rsdFrameBufferDestroy()
96 fb->mHal.drv = NULL; in rsdFrameBufferDestroy()
DrsdMeshObj.cpp142 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in renderPrimitiveRange() local
143 if (drv->uploadDeferred) { in renderPrimitiveRange()
152 DrvAllocation *drvAlloc = (DrvAllocation *)alloc->mHal.drv; in renderPrimitiveRange()
169 DrvAllocation *drvAlloc = (DrvAllocation *)idxAlloc->mHal.drv; in renderPrimitiveRange()
DrsdCore.cpp137 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in HelperThreadProc()
176 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdLaunchThreads()
197 rsc->mHal.drv = dc; in rsdHalInit()
261 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in SetPriority()
268 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in Shutdown()
DrsdGL.cpp128 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLShutdown()
152 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLInit()
370 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSetSurface()
418 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSwap()
DrsdShader.cpp326 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setupSampler()
347 DrvAllocation *drvTex = (DrvAllocation *)tex->mHal.drv; in setupSampler()
402 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setupTextures()
423 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv; in setupTextures()
DrsdVertexArray.cpp84 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setup()
/frameworks/base/libs/rs/
DrsFBOCache.h44 mutable void *drv; member
DrsProgramRaster.h39 mutable void *drv; member
DrsProgram.h47 mutable void *drv; member
DrsProgramStore.h46 mutable void *drv; member
DrsMesh.h48 mutable void *drv; member
DrsSampler.h48 mutable void *drv; member
DrsScript.h35 void * drv; member
DrsAllocation.h41 void * drv; member
DrsMesh.cpp23 mHal.drv = NULL; in Mesh()
34 mHal.drv = NULL; in Mesh()
DrsContext.h70 void * drv; member
DrsProgram.cpp101 mHal.drv = NULL; in initMemberVars()
DrsScriptC_LibGL.cpp140 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsrDrawQuadTexCoords()