Lines Matching refs:drv

43     RsdShader *drv = new RsdShader(pv, GL_VERTEX_SHADER, shader, shaderLen,  in rsdProgramVertexInit()  local
45 pv->mHal.drv = drv; in rsdProgramVertexInit()
56 DrvAllocation *drvAlloc = (DrvAllocation *)a->mHal.drv; in SyncProgramConstants()
64 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramVertexSetActive()
67 dc->gl.shaderCache->setActiveVertex((RsdShader*)pv->mHal.drv); in rsdProgramVertexSetActive()
71 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramVertexDestroy()
73 RsdShader *drv = nullptr; in rsdProgramVertexDestroy() local
74 if(pv->mHal.drv) { in rsdProgramVertexDestroy()
75 drv = (RsdShader*)pv->mHal.drv; in rsdProgramVertexDestroy()
79 if (drv->getStateBasedIDCount()) { in rsdProgramVertexDestroy()
80 dc->gl.shaderCache->cleanupVertex(drv); in rsdProgramVertexDestroy()
82 delete drv; in rsdProgramVertexDestroy()
90 RsdShader *drv = new RsdShader(pf, GL_FRAGMENT_SHADER, shader, shaderLen, in rsdProgramFragmentInit() local
92 pf->mHal.drv = drv; in rsdProgramFragmentInit()
98 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramFragmentSetActive()
101 dc->gl.shaderCache->setActiveFragment((RsdShader*)pf->mHal.drv); in rsdProgramFragmentSetActive()
105 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdProgramFragmentDestroy()
107 RsdShader *drv = nullptr; in rsdProgramFragmentDestroy() local
108 if(pf->mHal.drv) { in rsdProgramFragmentDestroy()
109 drv = (RsdShader*)pf->mHal.drv; in rsdProgramFragmentDestroy()
113 if (drv->getStateBasedIDCount()) { in rsdProgramFragmentDestroy()
114 dc->gl.shaderCache->cleanupFragment(drv); in rsdProgramFragmentDestroy()
116 delete drv; in rsdProgramFragmentDestroy()