Lines Matching refs:pRenderState

4935 int vmsvga3dSetRenderState(PVGASTATE pThis, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
4956 Log(("vmsvga3dSetRenderState: cid=%x state=%s (%d) val=%x\n", cid, vmsvga3dGetRenderStateName(pRenderState[i].state), pRenderState[i].state, pRenderState[i].uintValue));
4958 if (pRenderState[i].state < SVGA3D_RS_MAX)
4959 pContext->state.aRenderState[pRenderState[i].state] = pRenderState[i];
4961 switch (pRenderState[i].state)
4965 val = pRenderState[i].uintValue;
4969 glDepthMask(!!pRenderState[i].uintValue);
4975 val = pRenderState[i].uintValue;
4980 val = pRenderState[i].uintValue;
4985 val = pRenderState[i].uintValue;
4994 val = pRenderState[i].uintValue;
5004 val = pRenderState[i].uintValue;
5009 if (pRenderState[i].floatValue < pState->caps.flPointSize[0])
5010 pRenderState[i].floatValue = pState->caps.flPointSize[0];
5011 if (pRenderState[i].floatValue > pState->caps.flPointSize[1])
5012 pRenderState[i].floatValue = pState->caps.flPointSize[1];
5014 glPointSize(pRenderState[i].floatValue);
5016 Log(("SVGA3D_RS_POINTSIZE: %d\n", (uint32_t) (pRenderState[i].floatValue * 100.0)));
5020 pState->ext.glPointParameterf(GL_POINT_SIZE_MIN, pRenderState[i].floatValue);
5022 Log(("SVGA3D_RS_POINTSIZEMIN: %d\n", (uint32_t) (pRenderState[i].floatValue * 100.0)));
5026 pState->ext.glPointParameterf(GL_POINT_SIZE_MAX, pRenderState[i].floatValue);
5028 Log(("SVGA3D_RS_POINTSIZEMAX: %d\n", (uint32_t) (pRenderState[i].floatValue * 100.0)));
5042 vmsvgaColor2GLFloatArray(pRenderState[i].uintValue, &color[0], &color[1], &color[2], &color[3]);
5054 if (pRenderState[i].uintValue & RT_BIT(j))
5067 vmsvgaColor2GLFloatArray(pRenderState[i].uintValue, &color[0], &color[1], &color[2], &color[3]);
5075 glFogf(GL_FOG_START, pRenderState[i].floatValue);
5080 glFogf(GL_FOG_END, pRenderState[i].floatValue);
5085 glFogf(GL_FOG_DENSITY, pRenderState[i].floatValue);
5090 glFogi(GL_FOG_COORD_SRC, (pRenderState[i].uintValue) ? GL_FOG_COORD : GL_FRAGMENT_DEPTH);
5097 mode.uintValue = pRenderState[i].uintValue;
5157 mode.uintValue = pRenderState[i].uintValue;
5182 switch (pRenderState[i].uintValue)
5193 AssertMsgFailedReturn(("Unexpected shade mode %d\n", pRenderState[i].uintValue), VERR_INTERNAL_ERROR);
5204 Log(("WARNING: SVGA3D_RS_LINEPATTERN %x not supported!!\n", pRenderState[i].uintValue));
5207 val = pRenderState[i].uintValue;
5213 val = pRenderState[i].uintValue;
5217 glLineWidth(pRenderState[i].floatValue);
5241 val = pRenderState[i].uintValue;
5250 GLint blendop = vmsvga3dBlendOp2GL(pRenderState[i].uintValue);
5261 switch (pRenderState[i].state)
5297 glBlendEquation(vmsvga3dBlendEquation2GL(pRenderState[i].uintValue));
5299 pState->ext.glBlendEquation(vmsvga3dBlendEquation2GL(pRenderState[i].uintValue));
5309 vmsvgaColor2GLFloatArray(pRenderState[i].uintValue, &red, &green, &blue, &alpha);
5324 switch (pRenderState[i].uintValue)
5338 AssertMsgFailedReturn(("Unexpected cull mode %d\n", pRenderState[i].uintValue), VERR_INTERNAL_ERROR);
5342 if (pRenderState[i].uintValue != SVGA3D_FACE_NONE)
5354 glDepthFunc(vmsvgaCmpFunc2GL(pRenderState[i].uintValue));
5364 glAlphaFunc(vmsvgaCmpFunc2GL(pRenderState[i].uintValue), ref);
5375 glAlphaFunc(func, pRenderState[i].floatValue);
5382 val = pRenderState[i].uintValue;
5399 switch (pRenderState[i].state)
5402 func = vmsvgaCmpFunc2GL(pRenderState[i].uintValue);
5406 ref = pRenderState[i].uintValue;
5410 mask = pRenderState[i].uintValue;
5425 glStencilMask(pRenderState[i].uintValue);
5434 GLenum stencilop = vmsvgaStencipOp2GL(pRenderState[i].uintValue);
5443 switch (pRenderState[i].state)
5469 val = pRenderState[i].uintValue;
5488 pState->ext.glStencilFuncSeparate(GL_BACK, vmsvgaCmpFunc2GL(pRenderState[i].uintValue), ref, mask);
5501 GLenum stencilop = vmsvgaStencipOp2GL(pRenderState[i].uintValue);
5510 switch (pRenderState[i].state)
5534 val = pRenderState[i].uintValue;
5549 glPolygonOffset(factor, pRenderState[i].floatValue);
5564 glPolygonOffset(pRenderState[i].floatValue, units);
5574 mask.uintValue = pRenderState[i].uintValue;
5594 val = pRenderState[i].uintValue;
5601 val = pRenderState[i].uintValue;
5606 val = pRenderState[i].uintValue;
5611 val = pRenderState[i].uintValue;
5616 val = pRenderState[i].uintValue;
5645 val = pRenderState[i].uintValue;
5654 Assert(pRenderState[i].uintValue == SVGA3D_COORDINATE_LEFTHANDED);
5658 val = pRenderState[i].uintValue;
5663 Assert(pRenderState[i].uintValue == SVGA3D_FRONTWINDING_CW);
5665 glFrontFace((pRenderState[i].uintValue != SVGA3D_FRONTWINDING_CW) ? GL_CW : GL_CCW);
5674 val = pRenderState[i].uintValue;
5683 val = pRenderState[i].uintValue;
5688 val = pRenderState[i].uintValue;
5693 val = pRenderState[i].uintValue;
5700 val = pRenderState[i].uintValue;
5706 val = pRenderState[i].uintValue;
5713 val = pRenderState[i].uintValue;
5719 val = pRenderState[i].uintValue;
5725 val = pRenderState[i].uintValue;
5731 val = pRenderState[i].uintValue;
5737 val = pRenderState[i].uintValue;
5744 val = pRenderState[i].uintValue;