Lines Matching refs:drv
40 DrvProgramStore *drv = (DrvProgramStore *)calloc(1, sizeof(DrvProgramStore));
41 if (drv == nullptr) {
45 ps->mHal.drv = drv;
46 drv->depthTestEnable = true;
50 drv->depthTestEnable = false;
51 drv->depthFunc = GL_ALWAYS;
54 drv->depthFunc = GL_LESS;
57 drv->depthFunc = GL_LEQUAL;
60 drv->depthFunc = GL_GREATER;
63 drv->depthFunc = GL_GEQUAL;
66 drv->depthFunc = GL_EQUAL;
69 drv->depthFunc = GL_NOTEQUAL;
78 drv->blendEnable = true;
81 drv->blendEnable = false;
86 drv->blendSrc = GL_ZERO;
89 drv->blendSrc = GL_ONE;
92 drv->blendSrc = GL_DST_COLOR;
95 drv->blendSrc = GL_ONE_MINUS_DST_COLOR;
98 drv->blendSrc = GL_SRC_ALPHA;
101 drv->blendSrc = GL_ONE_MINUS_SRC_ALPHA;
104 drv->blendSrc = GL_DST_ALPHA;
107 drv->blendSrc = GL_ONE_MINUS_DST_ALPHA;
110 drv->blendSrc = GL_SRC_ALPHA_SATURATE;
119 drv->blendDst = GL_ZERO;
122 drv->blendDst = GL_ONE;
125 drv->blendDst = GL_SRC_COLOR;
128 drv->blendDst = GL_ONE_MINUS_SRC_COLOR;
131 drv->blendDst = GL_SRC_ALPHA;
134 drv->blendDst = GL_ONE_MINUS_SRC_ALPHA;
137 drv->blendDst = GL_DST_ALPHA;
140 drv->blendDst = GL_ONE_MINUS_DST_ALPHA;
150 free(drv);
151 ps->mHal.drv = nullptr;
156 DrvProgramStore *drv = (DrvProgramStore *)ps->mHal.drv;
163 if (drv->blendEnable) {
165 RSD_CALL_GL(glBlendFunc, drv->blendSrc, drv->blendDst);
172 if (drv->depthTestEnable || ps->mHal.state.depthWriteEnable) {
174 RSD_CALL_GL(glDepthFunc, drv->depthFunc);
199 free(ps->mHal.drv);
200 ps->mHal.drv = nullptr;