Lines Matching refs:pContext

465 static int vmsvga3dCreateTexture(PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, PVMSVGA3DSURFACE pSurface);
1629 PVMSVGA3DCONTEXT pContext = pState->papContexts[cid];
1630 if (pContext->id == cid)
1632 for (uint32_t i = 0; i < RT_ELEMENTS(pContext->aSidActiveTexture); i++)
1634 if (pContext->aSidActiveTexture[i] == sid)
1635 pContext->aSidActiveTexture[i] = SVGA3D_INVALID_ID;
1637 if (pContext->sidRenderTarget == sid)
1638 pContext->sidRenderTarget = SVGA3D_INVALID_ID;
1712 static PVMSVGA3DSHAREDSURFACE vmsvga3dSurfaceGetSharedCopy(PVGASTATE pThis, PVMSVGA3DCONTEXT pContext, PVMSVGA3DSURFACE pSurface)
1716 PVMSVGA3DSHAREDSURFACE pSharedSurface = (PVMSVGA3DSHAREDSURFACE)RTAvlU32Get(&pSurface->pSharedObjectTree, pContext->id);
1732 pSharedSurface->Core.Key = pContext->id;
1737 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
1757 static int vmsvga3dSurfaceTrackUsage(PVGASTATE pThis, PVMSVGA3DCONTEXT pContext, uint32_t sid)
1770 Log(("vmsvga3dSurfaceTrackUsage: track usage of surface id=%x (cid=%x)\n", sid, pContext->id));
1779 hr = pContext->pDevice->CreateQuery(D3DQUERYTYPE_EVENT, &pSurface->pQuery);
1849 PVMSVGA3DCONTEXT pContext;
1859 pContext = pState->papContexts[cid];
1862 rc = vmsvga3dCreateTexture(pContext, cid, pSurfaceDest);
1870 PVMSVGA3DCONTEXT pContext;
1881 pContext = pState->papContexts[cid];
1893 PVMSVGA3DSHAREDSURFACE pSharedSurface = vmsvga3dSurfaceGetSharedCopy(pThis, pContext, pSurfaceSrc);
1948 hr = pContext->pDevice->StretchRect(pSrc, &RectSrc, pDest, &RectDest, D3DTEXF_NONE);
1957 vmsvga3dSurfaceTrackUsage(pThis, pContext, sidSrc);
1958 vmsvga3dSurfaceTrackUsage(pThis, pContext, sidDest);
2064 static int vmsvga3dCreateTexture(PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, PVMSVGA3DSURFACE pSurface)
2076 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2091 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2102 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2117 hr = pContext->pDevice->CreateTexture(pSurface->pMipmapLevels[0].size.width,
2175 hr = pContext->pDevice->UpdateTexture(pSurface->bounce.pTexture, pSurface->u.pTexture);
2201 PVMSVGA3DCONTEXT pContext;
2227 pContext = pState->papContexts[cid];
2233 rc = vmsvga3dCreateTexture(pContext, cid, pSurfaceSrc);
2241 rc = vmsvga3dCreateTexture(pContext, cid, pSurfaceDest);
2304 hr = pContext->pDevice->StretchRect(pSrc, &RectSrc, pDest, &RectDest, moded3d);
2315 vmsvga3dSurfaceTrackUsage(pThis, pContext, sidSrc);
2316 vmsvga3dSurfaceTrackUsage(pThis, pContext, sidDest);
2474 PVMSVGA3DCONTEXT pContext = pState->papContexts[cid];
2484 hr = pContext->pDevice->GetRenderTargetData(pSrc, pDest);
2543 PVMSVGA3DCONTEXT pContext = pState->papContexts[cid];
2548 hr = pContext->pDevice->UpdateTexture(pSurface->bounce.pTexture, pSurface->u.pTexture);
2552 vmsvga3dSurfaceTrackUsage(pThis, pContext, pSurface->id);
2693 PVMSVGA3DCONTEXT pContext;
2710 pContext = pState->papContexts[cid];
2720 pContext->pDevice->ColorFill(pSrc, NULL, (D3DCOLOR)0x11122255);
2752 PVMSVGA3DCONTEXT pContext;
2764 pContext = pState->papContexts[cid];
2768 rc = vmsvga3dCreateTexture(pContext, cid, pSurface);
2788 PVMSVGA3DCONTEXT pContext;
2822 pContext = pState->papContexts[cid];
2824 hr = pContext->pDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &pBackBuffer);
2868 hr = pContext->pDevice->StretchRect(pSurfaceD3D, &rectSrc, pBackBuffer, &rectDest, D3DTEXF_NONE);
2895 hr = pContext->pDevice->StretchRect(pSurfaceD3D, &rectSrc, pBackBuffer, &rectDest, D3DTEXF_NONE);
2905 hr = pContext->pDevice->Present(NULL, NULL, NULL, NULL);
2923 PVMSVGA3DCONTEXT pContext;
2942 pContext = (PVMSVGA3DCONTEXT)RTMemAllocZ(sizeof(*pContext));
2943 AssertReturn(pContext, VERR_NO_MEMORY);
2944 pContext->id = SVGA3D_INVALID_ID;
2945 pState->papContexts[pState->cContexts++] = pContext;
2952 pContext = pState->papContexts[cid];
2953 memset(pContext, 0, sizeof(*pContext));
2954 pContext->id = cid;
2955 for (uint32_t i = 0; i< RT_ELEMENTS(pContext->aSidActiveTexture); i++)
2956 pContext->aSidActiveTexture[i] = SVGA3D_INVALID_ID;
2957 pContext->sidRenderTarget = SVGA3D_INVALID_ID;
2958 pContext->state.shidVertex = SVGA3D_INVALID_ID;
2959 pContext->state.shidPixel = SVGA3D_INVALID_ID;
2961 for (uint32_t i = 0; i < RT_ELEMENTS(pContext->state.aRenderTargets); i++)
2962 pContext->state.aRenderTargets[i] = SVGA3D_INVALID_ID;
2991 rc = vmsvga3dSendThreadMessage(pState->pWindowThread, pState->WndRequestSem, WM_VMSVGA3D_CREATEWINDOW, (WPARAM)&pContext->hwnd, (LPARAM)&cs);
3003 PresParam.hDeviceWindow = pContext->hwnd;
3015 pContext->hwnd,
3018 &pContext->pDevice);
3022 pContext->hwnd,
3026 &pContext->pDevice);
3051 PVMSVGA3DCONTEXT pContext = pState->papContexts[cid];
3127 for (uint32_t i = 0; i < pContext->cPixelShaders; i++)
3129 if (pContext->paPixelShader[i].id != SVGA3D_INVALID_ID)
3130 vmsvga3dShaderDestroy(pThis, pContext->paPixelShader[i].cid, pContext->paPixelShader[i].id, pContext->paPixelShader[i].type);
3132 if (pContext->paPixelShader)
3133 RTMemFree(pContext->paPixelShader);
3136 for (uint32_t i = 0; i < pContext->cVertexShaders; i++)
3138 if (pContext->paVertexShader[i].id != SVGA3D_INVALID_ID)
3139 vmsvga3dShaderDestroy(pThis, pContext->paVertexShader[i].cid, pContext->paVertexShader[i].id, pContext->paVertexShader[i].type);
3141 if (pContext->paVertexShader)
3142 RTMemFree(pContext->paVertexShader);
3144 if (pContext->state.paVertexShaderConst)
3145 RTMemFree(pContext->state.paVertexShaderConst);
3146 if (pContext->state.paPixelShaderConst)
3147 RTMemFree(pContext->state.paPixelShaderConst);
3150 pContext->pDevice->Release();
3153 int rc = vmsvga3dSendThreadMessage(pState->pWindowThread, pState->WndRequestSem, WM_VMSVGA3D_DESTROYWINDOW, (WPARAM)pContext->hwnd, 0);
3156 memset(pContext, 0, sizeof(*pContext));
3157 pContext->id = SVGA3D_INVALID_ID;
3166 #define vmsvga3dContextTrackUsage(pThis, pContext)
3168 static int vmsvga3dContextTrackUsage(PVGASTATE pThis, PVMSVGA3DCONTEXT pContext)
3171 for (uint32_t i = 0; i < RT_ELEMENTS(pContext->aSidActiveTexture); i++)
3173 if (pContext->aSidActiveTexture[i] != SVGA3D_INVALID_ID)
3174 vmsvga3dSurfaceTrackUsage(pThis, pContext, pContext->aSidActiveTexture[i]);
3176 if (pContext->sidRenderTarget != SVGA3D_INVALID_ID)
3177 vmsvga3dSurfaceTrackUsage(pThis, pContext, pContext->sidRenderTarget);
3191 PVMSVGA3DCONTEXT pContext = pState->papContexts[i];
3192 uint32_t cid = pContext->id;
3236 hr = pContext->pDevice->GetRenderTargetData(pSrc, pDest);
3319 Log(("vmsvga3dChangeMode: Resize window %x of context %d to (%d,%d)\n", pContext->hwnd, pContext->id, cs.cx, cs.cy));
3321 hr = pContext->pDevice->GetViewport(&viewportOrg);
3327 int rc = vmsvga3dSendThreadMessage(pState->pWindowThread, pState->WndRequestSem, WM_VMSVGA3D_RESIZEWINDOW, (WPARAM)pContext->hwnd, (LPARAM)&cs);
3339 PresParam.hDeviceWindow = pContext->hwnd;
3349 hr = pContext->pDevice->Reset(&PresParam);
3353 hr = pContext->pDevice->ResetEx(&PresParam, NULL);
3359 hr = pContext->pDevice->SetViewport(&viewportOrg);
3365 hr = pContext->pDevice->GetViewport(&viewport);
3374 for (uint32_t j = 0; j < RT_ELEMENTS(pContext->state.aRenderTargets); j++)
3376 if (pContext->state.aRenderTargets[j] != SVGA3D_INVALID_ID)
3380 target.sid = pContext->state.aRenderTargets[j];
3391 for (uint32_t i = 0; i < RT_ELEMENTS(pContext->state.aRenderState); i++)
3393 SVGA3dRenderState *pRenderState = &pContext->state.aRenderState[i];
3396 vmsvga3dSetRenderState(pThis, pContext->id, 1, pRenderState);
3406 SVGA3dTextureState *pTextureState = &pContext->state.aTextureState[iStage][j];
3409 vmsvga3dSetTextureState(pThis, pContext->id, 1, pTextureState);
3414 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_SCISSORRECT)
3415 vmsvga3dSetScissorRect(pThis, cid, &pContext->state.RectScissor);
3416 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_ZRANGE)
3417 vmsvga3dSetZRange(pThis, cid, pContext->state.zRange);
3418 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_VIEWPORT)
3419 vmsvga3dSetViewPort(pThis, cid, &pContext->state.RectViewPort);
3420 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_VERTEXSHADER)
3421 vmsvga3dShaderSet(pThis, cid, SVGA3D_SHADERTYPE_VS, pContext->state.shidVertex);
3422 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_PIXELSHADER)
3423 vmsvga3dShaderSet(pThis, cid, SVGA3D_SHADERTYPE_PS, pContext->state.shidPixel);
3436 PVMSVGA3DCONTEXT pContext;
3448 pContext = pState->papContexts[cid];
3501 pContext->state.aTransformState[type].fValid = true;
3502 memcpy(pContext->state.aTransformState[type].matrix, matrix, sizeof(pContext->state.aTransformState[type].matrix));
3503 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_TRANSFORM;
3509 hr = pContext->pDevice->SetTransform(d3dState, (const D3DMATRIX *)matrix);
3518 PVMSVGA3DCONTEXT pContext;
3530 pContext = pState->papContexts[cid];
3531 pContext->state.zRange = zRange;
3532 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_ZRANGE;
3534 hr = pContext->pDevice->GetViewport(&viewport);
3546 hr = pContext->pDevice->SetViewport(&viewport);
3594 PVMSVGA3DCONTEXT pContext;
3606 pContext = pState->papContexts[cid];
3615 pContext->state.aRenderState[pRenderState[i].state] = pRenderState[i];
3788 hr = pContext->pDevice->SetRenderState(D3DRS_RANGEFOGENABLE, FALSE);
3792 hr = pContext->pDevice->SetRenderState(D3DRS_RANGEFOGENABLE, TRUE);
4254 hr = pContext->pDevice->SetRenderState(renderState, val);
4265 PVMSVGA3DCONTEXT pContext;
4282 pContext = pState->papContexts[cid];
4285 pContext->state.aRenderTargets[type] = target.sid;
4293 hr = pContext->pDevice->SetDepthStencilSurface(NULL);
4309 pContext->sidRenderTarget = SVGA3D_INVALID_ID;
4317 hr = pContext->pDevice->CreateRenderTarget(pThis->svga.uWidth,
4328 hr = pContext->pDevice->SetRenderTarget(type - SVGA3D_RT_COLOR0, pDummyRenderTarget);
4332 hr = pContext->pDevice->SetRenderTarget(type - SVGA3D_RT_COLOR0, NULL);
4373 int rc = vmsvga3dCreateTexture(pContext, cid, pRenderTarget);
4380 hr = pContext->pDevice->CreateDepthStencilSurface(pRenderTarget->pMipmapLevels[0].size.width,
4449 hr = pContext->pDevice->SetDepthStencilSurface(pStencilSurface);
4455 hr = pContext->pDevice->SetDepthStencilSurface(pRenderTarget->u.pSurface);
4484 int rc = vmsvga3dCreateTexture(pContext, cid, pRenderTarget);
4493 PVMSVGA3DSHAREDSURFACE pSharedSurface = vmsvga3dSurfaceGetSharedCopy(pThis, pContext, pRenderTarget);
4529 hr = pContext->pDevice->CreateRenderTarget(pRenderTarget->pMipmapLevels[0].size.width,
4554 hr = pContext->pDevice->SetRenderTarget(type - SVGA3D_RT_COLOR0, pSurface);
4559 pContext->sidRenderTarget = target.sid;
4562 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_VIEWPORT)
4563 vmsvga3dSetViewPort(pThis, cid, &pContext->state.RectViewPort);
4565 if (pContext->state.u32UpdateFlags & VMSVGA3D_UPDATE_SCISSORRECT)
4566 vmsvga3dSetScissorRect(pThis, cid, &pContext->state.RectScissor);
4696 PVMSVGA3DCONTEXT pContext;
4708 pContext = pState->papContexts[cid];
4730 pContext->state.aTextureState[currentStage][pTextureState[i].name] = pTextureState[i];
4820 pContext->aSidActiveTexture[currentStage] = SVGA3D_INVALID_ID;
4822 hr = pContext->pDevice->SetTexture(currentStage, NULL);
4841 int rc = vmsvga3dCreateTexture(pContext, cid, pSurface);
4855 PVMSVGA3DSHAREDSURFACE pSharedSurface = vmsvga3dSurfaceGetSharedCopy(pThis, pContext, pSurface);
4858 hr = pContext->pDevice->SetTexture(currentStage, pSharedSurface->u.pTexture);
4862 hr = pContext->pDevice->SetTexture(currentStage, pSurface->u.pTexture);
4866 pContext->aSidActiveTexture[currentStage] = sid;
4947 hr = pContext->pDevice->SetTextureStageState(currentStage, textureType, val);
4952 hr = pContext->pDevice->SetSamplerState(currentStage, samplerType, val);
4965 PVMSVGA3DCONTEXT pContext;
4977 pContext = pState->papContexts[cid];
4982 pContext->state.aMaterial[face].fValid = true;
4983 pContext->state.aMaterial[face].material = *pMaterial;
4984 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_MATERIAL;
5010 hr = pContext->pDevice->SetMaterial(&material);
5020 PVMSVGA3DCONTEXT pContext;
5032 pContext = pState->papContexts[cid];
5057 pContext->state.aLightData[index].fValidData = true;
5058 pContext->state.aLightData[index].data = *pData;
5089 hr = pContext->pDevice->SetLight(index, &light);
5098 PVMSVGA3DCONTEXT pContext;
5110 pContext = pState->papContexts[cid];
5114 pContext->state.aLightData[index].fEnabled = !!enabled;
5118 hr = pContext->pDevice->LightEnable(index, (BOOL)enabled);
5128 PVMSVGA3DCONTEXT pContext;
5141 pContext = pState->papContexts[cid];
5142 pContext->state.RectViewPort = *pRect;
5143 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_VIEWPORT;
5145 hr = pContext->pDevice->GetViewport(&viewPort);
5154 hr = pContext->pDevice->SetViewport(&viewPort);
5163 PVMSVGA3DCONTEXT pContext;
5176 pContext = pState->papContexts[cid];
5179 pContext->state.aClipPlane[index].fValid = true;
5180 memcpy(pContext->state.aClipPlane[index].plane, plane, sizeof(plane));
5182 hr = pContext->pDevice->SetClipPlane(index, plane);
5192 PVMSVGA3DCONTEXT pContext;
5204 pContext = pState->papContexts[cid];
5228 hr = pContext->pDevice->Clear(cRects, pRectD3D, clearFlagD3D, (D3DCOLOR)color, depth, stencil);
5235 if (pContext->sidRenderTarget != SVGA3D_INVALID_ID)
5236 vmsvga3dSurfaceTrackUsage(pThis, pContext, pContext->sidRenderTarget);
5290 int vmsvga3dDrawPrimitivesProcessVertexDecls(PVMSVGA3DSTATE pState, PVMSVGA3DCONTEXT pContext, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl, uint32_t idStream, D3DVERTEXELEMENT9 *pVertexElement)
5330 hr = pContext->pDevice->CreateVertexBuffer(pVertexSurface->pMipmapLevels[0].cbSurface,
5338 pVertexSurface->idAssociatedContext = pContext->id;
5379 hr = pContext->pDevice->SetStreamSource(idStream,
5392 PVMSVGA3DCONTEXT pContext;
5417 pContext = pState->papContexts[cid];
5420 hr = pContext->pDevice->BeginScene();
5457 rc = vmsvga3dDrawPrimitivesProcessVertexDecls(pState, pContext, iVertex - iCurrentVertex, &pVertexDecl[iCurrentVertex], iCurrentStreamId, &pVertexElement[iCurrentVertex]);
5468 hr = pContext->pDevice->CreateVertexDeclaration(&pVertexElement[0],
5477 hr = pContext->pDevice->SetVertexDeclaration(pVertexDeclD3D);
5528 hr = pContext->pDevice->CreateIndexBuffer(pIndexSurface->pMipmapLevels[0].cbSurface,
5563 hr = pContext->pDevice->SetIndices(pIndexSurface->u.pIndexBuffer);
5568 hr = pContext->pDevice->SetIndices(NULL);
5583 hr = pContext->pDevice->DrawPrimitive(PrimitiveTypeD3D,
5607 hr = pContext->pDevice->DrawIndexedPrimitive(PrimitiveTypeD3D,
5624 hr = pContext->pDevice->EndScene();
5633 hr = pContext->pDevice->SetStreamSource(i, NULL, 0, 0);
5641 hr = pContext->pDevice->CreateQuery(D3DQUERYTYPE_EVENT, &pQuery);
5660 vmsvga3dContextTrackUsage(pThis, pContext);
5663 if (pContext->aSidActiveTexture[0] == 0x62)
5664 //// if (pContext->sidActiveTexture == 0x3d)
5671 vmsvga3dCommandPresent(pThis, pContext->sidRenderTarget /*pContext->aSidActiveTexture[0] */, 0, &rect);
5682 hr = pContext->pDevice->EndScene();
5692 PVMSVGA3DCONTEXT pContext;
5704 pContext = pState->papContexts[cid];
5707 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_SCISSORRECT;
5708 pContext->state.RectScissor = *pRect;
5715 hr = pContext->pDevice->SetScissorRect(&rect);
5725 PVMSVGA3DCONTEXT pContext;
5739 pContext = pState->papContexts[cid];
5744 if (shid >= pContext->cVertexShaders)
5746 void *pvNew = RTMemRealloc(pContext->paVertexShader, sizeof(VMSVGA3DSHADER) * (shid + 1));
5748 pContext->paVertexShader = (PVMSVGA3DSHADER)pvNew;
5749 memset(&pContext->paVertexShader[pContext->cVertexShaders], 0, sizeof(VMSVGA3DSHADER) * (shid + 1 - pContext->cVertexShaders));
5750 for (uint32_t i = pContext->cVertexShaders; i < shid + 1; i++)
5751 pContext->paVertexShader[i].id = SVGA3D_INVALID_ID;
5752 pContext->cVertexShaders = shid + 1;
5755 if (pContext->paVertexShader[shid].id != SVGA3D_INVALID_ID)
5756 vmsvga3dShaderDestroy(pThis, cid, shid, pContext->paVertexShader[shid].type);
5758 pShader = &pContext->paVertexShader[shid];
5763 if (shid >= pContext->cPixelShaders)
5765 void *pvNew = RTMemRealloc(pContext->paPixelShader, sizeof(VMSVGA3DSHADER) * (shid + 1));
5767 pContext->paPixelShader = (PVMSVGA3DSHADER)pvNew;
5768 memset(&pContext->paPixelShader[pContext->cPixelShaders], 0, sizeof(VMSVGA3DSHADER) * (shid + 1 - pContext->cPixelShaders));
5769 for (uint32_t i = pContext->cPixelShaders; i < shid + 1; i++)
5770 pContext->paPixelShader[i].id = SVGA3D_INVALID_ID;
5771 pContext->cPixelShaders = shid + 1;
5774 if (pContext->paPixelShader[shid].id != SVGA3D_INVALID_ID)
5775 vmsvga3dShaderDestroy(pThis, cid, shid, pContext->paPixelShader[shid].type);
5777 pShader = &pContext->paPixelShader[shid];
5802 hr = pContext->pDevice->CreateVertexShader((const DWORD *)pShaderData, &pShader->u.pVertexShader);
5806 hr = pContext->pDevice->CreatePixelShader((const DWORD *)pShaderData, &pShader->u.pPixelShader);
5825 PVMSVGA3DCONTEXT pContext;
5838 pContext = pState->papContexts[cid];
5842 if ( shid < pContext->cVertexShaders
5843 && pContext->paVertexShader[shid].id == shid)
5845 pShader = &pContext->paVertexShader[shid];
5852 if ( shid < pContext->cPixelShaders
5853 && pContext->paPixelShader[shid].id == shid)
5855 pShader = &pContext->paPixelShader[shid];
5876 PVMSVGA3DCONTEXT pContext;
5889 pContext = pState->papContexts[cid];
5894 pContext->state.shidVertex = shid;
5895 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_VERTEXSHADER;
5897 if ( shid < pContext->cVertexShaders
5898 && pContext->paVertexShader[shid].id == shid)
5900 PVMSVGA3DSHADER pShader = &pContext->paVertexShader[shid];
5903 hr = pContext->pDevice->SetVertexShader(pShader->u.pVertexShader);
5910 hr = pContext->pDevice->SetVertexShader(NULL);
5919 pContext->state.shidPixel = shid;
5920 pContext->state.u32UpdateFlags |= VMSVGA3D_UPDATE_PIXELSHADER;
5923 if ( shid < pContext->cPixelShaders
5924 && pContext->paPixelShader[shid].id == shid)
5926 PVMSVGA3DSHADER pShader = &pContext->paPixelShader[shid];
5929 hr = pContext->pDevice->SetPixelShader(pShader->u.pPixelShader);
5936 hr = pContext->pDevice->SetPixelShader(NULL);
5949 PVMSVGA3DCONTEXT pContext;
5961 pContext = pState->papContexts[cid];
5966 vmsvga3dSaveShaderConst(pContext, reg + i, type, ctype, pValues[i*4 + 0], pValues[i*4 + 1], pValues[i*4 + 2], pValues[i*4 + 3]);
5975 hr = pContext->pDevice->SetVertexShaderConstantF(reg, (const float *)pValues, cRegisters);
5979 hr = pContext->pDevice->SetVertexShaderConstantI(reg, (const int *)pValues, cRegisters);
5983 hr = pContext->pDevice->SetVertexShaderConstantB(reg, (const BOOL *)pValues, cRegisters);
5997 hr = pContext->pDevice->SetPixelShaderConstantF(reg, (const float *)pValues, cRegisters);
6002 hr = pContext->pDevice->SetPixelShaderConstantI(reg, (const int *)pValues, cRegisters);
6006 hr = pContext->pDevice->SetPixelShaderConstantB(reg, (const BOOL *)pValues, cRegisters);