VirtualBox

Ignore:
Timestamp:
May 17, 2021 8:16:19 PM (4 years ago)
Author:
vboxsync
Message:

Devices/Graphics: Function tables for 3D backends (build fix). bugref:9830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp

    r89122 r89123  
    187187
    188188
    189 static void vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface);
     189static DECLCALLBACK(void) vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface);
    190190
    191191
     
    17641764
    17651765
    1766 static int vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     1766static DECLCALLBACK(int) vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    17671767{
    17681768    RT_NOREF(pDevIns, pThis);
     
    17961796
    17971797
    1798 static int vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     1798static DECLCALLBACK(int) vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    17991799{
    18001800    RT_NOREF(pDevIns, pThis);
     
    18111811
    18121812
    1813 static int vmsvga3dBackTerminate(PVGASTATECC pThisCC)
     1813static DECLCALLBACK(int) vmsvga3dBackTerminate(PVGASTATECC pThisCC)
    18141814{
    18151815    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    18281828
    18291829
    1830 static int vmsvga3dBackReset(PVGASTATECC pThisCC)
     1830static DECLCALLBACK(int) vmsvga3dBackReset(PVGASTATECC pThisCC)
    18311831{
    18321832    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    19751975
    19761976
    1977 static int vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     1977static DECLCALLBACK(int) vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    19781978{
    19791979    RT_NOREF(pThis, pThisCC, pScreen);
     
    20192019
    20202020
    2021 static int vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     2021static DECLCALLBACK(int) vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    20222022{
    20232023    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    20372037
    20382038
    2039 static int vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
     2039static DECLCALLBACK(int) vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
    20402040                                    SVGASignedRect destRect, SVGA3dSurfaceImageId srcImage,
    20412041                                    SVGASignedRect srcRect, uint32_t cRects, SVGASignedRect *paRects)
     
    25102510 */
    25112511
    2512 static int vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)
     2512static DECLCALLBACK(int) vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)
    25132513{
    25142514    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    30683068
    30693069
    3070 static int vmsvga3dBackChangeMode(PVGASTATECC pThisCC)
     3070static DECLCALLBACK(int) vmsvga3dBackChangeMode(PVGASTATECC pThisCC)
    30713071{
    30723072    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    30773077
    30783078
    3079 static int vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,
     3079static DECLCALLBACK(int) vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,
    30803080                               uint32_t cCopyBoxes, SVGA3dCopyBox *pBox)
    30813081{
     
    30903090
    30913091
    3092 static void vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)
     3092static DECLCALLBACK(void) vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)
    30933093{
    30943094    RT_NOREF(pThisCC, idScreen, pOldViewport);
     
    31033103 * @param   cid             Context id
    31043104 */
    3105 static int vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)
     3105static DECLCALLBACK(int) vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)
    31063106{
    31073107    RT_NOREF(cid);
     
    31223122 * @param   cid             Context id
    31233123 */
    3124 static int vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)
     3124static DECLCALLBACK(int) vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)
    31253125{
    31263126    RT_NOREF(cid);
     
    31343134
    31353135
    3136 static int vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])
     3136static DECLCALLBACK(int) vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])
    31373137{
    31383138    RT_NOREF(cid, type, matrix);
     
    31463146
    31473147
    3148 static int vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)
     3148static DECLCALLBACK(int) vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)
    31493149{
    31503150    RT_NOREF(cid, zRange);
     
    31583158
    31593159
    3160 static int vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
     3160static DECLCALLBACK(int) vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
    31613161{
    31623162    RT_NOREF(cid, cRenderStates, pRenderState);
     
    31703170
    31713171
    3172 static int vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)
     3172static DECLCALLBACK(int) vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)
    31733173{
    31743174    RT_NOREF(cid, type, target);
     
    31823182
    31833183
    3184 static int vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
     3184static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
    31853185{
    31863186    RT_NOREF(cid, cTextureStates, pTextureState);
     
    31943194
    31953195
    3196 static int vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)
     3196static DECLCALLBACK(int) vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)
    31973197{
    31983198    RT_NOREF(cid, face, pMaterial);
     
    32063206
    32073207
    3208 static int vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)
     3208static DECLCALLBACK(int) vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)
    32093209{
    32103210    RT_NOREF(cid, index, pData);
     
    32183218
    32193219
    3220 static int vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)
     3220static DECLCALLBACK(int) vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)
    32213221{
    32223222    RT_NOREF(cid, index, enabled);
     
    32303230
    32313231
    3232 static int vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
     3232static DECLCALLBACK(int) vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
    32333233{
    32343234    RT_NOREF(cid, pRect);
     
    32423242
    32433243
    3244 static int vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, float plane[4])
     3244static DECLCALLBACK(int) vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, float plane[4])
    32453245{
    32463246    RT_NOREF(cid, index, plane);
     
    32543254
    32553255
    3256 static int vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth,
     3256static DECLCALLBACK(int) vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth,
    32573257                                    uint32_t stencil, uint32_t cRects, SVGA3dRect *pRect)
    32583258{
     
    32753275
    32763276
    3277 static int vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,
     3277static DECLCALLBACK(int) vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,
    32783278                                  uint32_t numRanges, SVGA3dPrimitiveRange *pRange,
    32793279                                  uint32_t cVertexDivisor, SVGA3dVertexDivisor *pVertexDivisor)
     
    32893289
    32903290
    3291 static int vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
     3291static DECLCALLBACK(int) vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
    32923292{
    32933293    RT_NOREF(cid, pRect);
     
    33013301
    33023302
    3303 static int vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)
     3303static DECLCALLBACK(int) vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)
    33043304{
    33053305    RT_NOREF(sid, filter);
     
    33133313
    33143314
    3315 static int vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type,
     3315static DECLCALLBACK(int) vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type,
    33163316                                uint32_t cbData, uint32_t *pShaderData)
    33173317{
     
    33263326
    33273327
    3328 static int vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)
     3328static DECLCALLBACK(int) vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)
    33293329{
    33303330    RT_NOREF(cid, shid, type);
     
    33383338
    33393339
    3340 static int vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)
     3340static DECLCALLBACK(int) vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)
    33413341{
    33423342    RT_NOREF(pContext, cid, type, shid);
     
    33503350
    33513351
    3352 static int vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type,
     3352static DECLCALLBACK(int) vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type,
    33533353                                  SVGA3dShaderConstType ctype, uint32_t cRegisters, uint32_t *pValues)
    33543354{
     
    33693369 * @param   pSurface            The surface being destroyed.
    33703370 */
    3371 static void vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)
     3371static DECLCALLBACK(void) vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)
    33723372{
    33733373    RT_NOREF(pThisCC);
     
    34213421 * @param   pContext            The VMSVGA3d context (already current for OGL).
    34223422 */
    3423 static int vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,
     3423static DECLCALLBACK(int) vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,
    34243424                                  PVMSVGA3DSURFACE pDstSurface, uint32_t uDstFace, uint32_t uDstMipmap, SVGA3dBox const *pDstBox,
    34253425                                  PVMSVGA3DSURFACE pSrcSurface, uint32_t uSrcFace, uint32_t uSrcMipmap, SVGA3dBox const *pSrcBox,
     
    34533453 * @param   iBox                The current box number (for Direct 3D).
    34543454 */
    3455 static int vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,
     3455static DECLCALLBACK(int) vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,
    34563456                                  PVMSVGA3DMIPMAPLEVEL pMipLevel, uint32_t uHostFace, uint32_t uHostMipmap,
    34573457                                  SVGAGuestPtr GuestPtr, uint32_t cbGuestPitch, SVGA3dTransferType transfer,
     
    36263626 * @param   pSurface            The surface to create the texture for.
    36273627 */
    3628 static int vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,
     3628static DECLCALLBACK(int) vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,
    36293629                                     PVMSVGA3DSURFACE pSurface)
    36303630
     
    36373637
    36383638
    3639 static int vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     3639static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    36403640{
    36413641    RT_NOREF(pThisCC, pContext);
     
    36453645
    36463646
    3647 static int vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     3647static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    36483648{
    36493649    RT_NOREF(pThisCC, pContext);
     
    36533653
    36543654
    3655 static int vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     3655static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    36563656{
    36573657    RT_NOREF(pThisCC, pContext);
     
    36613661
    36623662
    3663 static int vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)
     3663static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)
    36643664{
    36653665    RT_NOREF(pThisCC, pContext);
     
    36703670
    36713671
    3672 static int vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     3672static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    36733673{
    36743674    RT_NOREF(pThisCC, pContext);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette