/frameworks/base/libs/rs/driver/ |
D | rsdProgramStore.cpp | 41 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 …]
|
D | rsdAllocation.cpp | 79 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 …]
|
D | rsdProgram.cpp | 38 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 …]
|
D | rsdBcc.cpp | 81 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 …]
|
D | rsdMesh.cpp | 31 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 …]
|
D | rsdFrameBuffer.cpp | 33 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()
|
D | rsdMeshObj.cpp | 142 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()
|
D | rsdCore.cpp | 137 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()
|
D | rsdGL.cpp | 128 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()
|
D | rsdShader.cpp | 326 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()
|
D | rsdVertexArray.cpp | 84 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setup()
|
/frameworks/base/libs/rs/ |
D | rsFBOCache.h | 44 mutable void *drv; member
|
D | rsProgramRaster.h | 39 mutable void *drv; member
|
D | rsProgram.h | 47 mutable void *drv; member
|
D | rsProgramStore.h | 46 mutable void *drv; member
|
D | rsMesh.h | 48 mutable void *drv; member
|
D | rsSampler.h | 48 mutable void *drv; member
|
D | rsScript.h | 35 void * drv; member
|
D | rsAllocation.h | 41 void * drv; member
|
D | rsMesh.cpp | 23 mHal.drv = NULL; in Mesh() 34 mHal.drv = NULL; in Mesh()
|
D | rsContext.h | 70 void * drv; member
|
D | rsProgram.cpp | 101 mHal.drv = NULL; in initMemberVars()
|
D | rsScriptC_LibGL.cpp | 140 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsrDrawQuadTexCoords()
|