Lines Matching defs:reg

764 static uint32_t vmsvga3dSaveShaderConst(PVMSVGA3DCONTEXT pContext, uint32_t reg, SVGA3dShaderType type, SVGA3dShaderConstType ctype, uint32_t val1, uint32_t val2, uint32_t val3, uint32_t val4)
767 AssertReturn(reg < _32K, VERR_INVALID_PARAMETER);
771 if (pContext->state.cVertexShaderConst <= reg)
773 pContext->state.paVertexShaderConst = (PVMSVGASHADERCONST)RTMemRealloc(pContext->state.paVertexShaderConst, sizeof(VMSVGASHADERCONST) * (reg + 1));
775 for (uint32_t i = pContext->state.cVertexShaderConst; i < reg + 1; i++)
777 pContext->state.cVertexShaderConst = reg + 1;
780 pContext->state.paVertexShaderConst[reg].fValid = true;
781 pContext->state.paVertexShaderConst[reg].ctype = ctype;
782 pContext->state.paVertexShaderConst[reg].value[0] = val1;
783 pContext->state.paVertexShaderConst[reg].value[1] = val2;
784 pContext->state.paVertexShaderConst[reg].value[2] = val3;
785 pContext->state.paVertexShaderConst[reg].value[3] = val4;
790 if (pContext->state.cPixelShaderConst <= reg)
792 pContext->state.paPixelShaderConst = (PVMSVGASHADERCONST)RTMemRealloc(pContext->state.paPixelShaderConst, sizeof(VMSVGASHADERCONST) * (reg + 1));
794 for (uint32_t i = pContext->state.cPixelShaderConst; i < reg + 1; i++)
796 pContext->state.cPixelShaderConst = reg + 1;
799 pContext->state.paPixelShaderConst[reg].fValid = true;
800 pContext->state.paPixelShaderConst[reg].ctype = ctype;
801 pContext->state.paPixelShaderConst[reg].value[0] = val1;
802 pContext->state.paPixelShaderConst[reg].value[1] = val2;
803 pContext->state.paPixelShaderConst[reg].value[2] = val3;
804 pContext->state.paPixelShaderConst[reg].value[3] = val4;