Home
last modified time | relevance | path

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

12

/frameworks/rs/driver/
DrsdProgramStore.cpp40 DrvProgramStore *drv = (DrvProgramStore *)calloc(1, sizeof(DrvProgramStore)); in rsdProgramStoreInit() local
41 if (drv == nullptr) { in rsdProgramStoreInit()
45 ps->mHal.drv = drv; in rsdProgramStoreInit()
46 drv->depthTestEnable = true; in rsdProgramStoreInit()
50 drv->depthTestEnable = false; in rsdProgramStoreInit()
51 drv->depthFunc = GL_ALWAYS; in rsdProgramStoreInit()
54 drv->depthFunc = GL_LESS; in rsdProgramStoreInit()
57 drv->depthFunc = GL_LEQUAL; in rsdProgramStoreInit()
60 drv->depthFunc = GL_GREATER; in rsdProgramStoreInit()
63 drv->depthFunc = GL_GEQUAL; in rsdProgramStoreInit()
[all …]
DrsdProgram.cpp43 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()
[all …]
DrsdMesh.cpp31 RsdMeshObj *drv = nullptr; 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(rsc); 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 …]
DrsdAllocation.cpp103 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in Update2DTexture() local
105 rsAssert(drv->textureID); in Update2DTexture()
106 RSD_CALL_GL(glBindTexture, drv->glTarget, drv->textureID); in Update2DTexture()
112 RSD_CALL_GL(glTexSubImage2D, t, lod, xoff, yoff, w, h, drv->glFormat, drv->glType, ptr); in Update2DTexture()
119 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in Upload2DTexture() local
121 RSD_CALL_GL(glBindTexture, drv->glTarget, drv->textureID); in Upload2DTexture()
140 RSD_CALL_GL(glTexImage2D, t, lod, drv->glFormat, in Upload2DTexture()
143 0, drv->glFormat, drv->glType, p); in Upload2DTexture()
148 drv->glFormat, drv->glType, p); in Upload2DTexture()
154 RSD_CALL_GL(glGenerateMipmap, drv->glTarget); in Upload2DTexture()
[all …]
DrsdBcc.cpp44 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdScriptInit()
51 script->mHal.drv = cs; in rsdScriptInit()
58 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdInitIntrinsic()
63 s->mHal.drv = cs; in rsdInitIntrinsic()
98 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeForEachMulti()
104 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeRoot()
109 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeInit()
114 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeFreeChildren()
122 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeFunction()
131 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)s->mHal.drv; in rsdScriptInvokeReduce()
[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 = nullptr; in rsdFrameBufferDestroy()
DrsdScriptGroup.cpp36 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdScriptGroupInit()
38 sg->mHal.drv = dc->mCpuRef->createScriptGroup(sg); in rsdScriptGroupInit()
39 return sg->mHal.drv != nullptr; in rsdScriptGroupInit()
52 (RsdCpuReference::CpuScriptGroupBase *)sg->mHal.drv; in rsdScriptGroupExecute()
58 (RsdCpuReference::CpuScriptGroupBase *)sg->mHal.drv; in rsdScriptGroupDestroy()
DrsdCore.cpp283 return (RsdCpuReference::CpuScript *)s->mHal.drv; in LookupScript()
336 rsc->mHal.drv = dc; in rsdHalInit()
342 rsc->mHal.drv = nullptr; in rsdHalInit()
352 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in SetPriority()
364 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in Shutdown()
367 rsc->mHal.drv = nullptr; in Shutdown()
DrsdMeshObj.cpp141 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in renderPrimitiveRange() local
142 if (drv->uploadDeferred) { in renderPrimitiveRange()
151 DrvAllocation *drvAlloc = (DrvAllocation *)alloc->mHal.drv; in renderPrimitiveRange()
167 DrvAllocation *drvAlloc = (DrvAllocation *)idxAlloc->mHal.drv; in renderPrimitiveRange()
DrsdGL.cpp149 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLShutdown()
225 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLInit()
426 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSetInternalSurface()
468 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSetSurface()
487 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSwap()
DrsdShader.cpp391 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setupSampler()
412 DrvAllocation *drvTex = (DrvAllocation *)tex->mHal.drv; in setupSampler()
472 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setupTextures()
493 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv; in setupTextures()
DrsdVertexArray.cpp83 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setup()
DrsdFrameBufferObj.cpp125 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in setActive()
/frameworks/rs/support/jni/
Dandroid_rscompat_usage_io_driver.cpp16 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in IoGetBuffer() local
18 if(drv->wndBuffer == NULL) { in IoGetBuffer()
19 drv->wndBuffer = new ANativeWindow_Buffer; in IoGetBuffer()
21 int32_t r = ANativeWindow_lock(nw, drv->wndBuffer, NULL); in IoGetBuffer()
27 void *dst = drv->wndBuffer->bits; in IoGetBuffer()
29 … alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes; in IoGetBuffer()
36 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; in rscAllocationSetSurface() local
39 if (drv->wndSurface) { in rscAllocationSetSurface()
40 ANativeWindow *old = drv->wndSurface; in rscAllocationSetSurface()
42 drv->wndSurface = NULL; in rscAllocationSetSurface()
[all …]
/frameworks/rs/driver/runtime/
Drs_structs.h37 void * drv; member
140 void * drv; member
173 void *drv; member
209 void *drv; member
251 void *drv; member
290 void *drv; member
/frameworks/rs/
DrsScriptGroupBase.h29 void * drv; member
DrsFBOCache.h44 mutable void *drv; member
DrsProgramRaster.h40 mutable void *drv; member
DrsProgram.h34 mutable void *drv; member
DrsProgramStore.h41 mutable void *drv; member
DrsSampler.h42 mutable void *drv; member
DrsMesh.h39 mutable void *drv; member
DrsMesh.cpp25 mHal.drv = nullptr; in Mesh()
41 mHal.drv = nullptr; in Mesh()
DrsScript.h80 void * drv; member
DrsElement.h42 mutable void *drv; member

12