VirtualBox

Changeset 89123 in vbox


Ignore:
Timestamp:
May 17, 2021 8:16:19 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144464
Message:

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

Location:
trunk/src/VBox/Devices/Graphics
Files:
3 edited

Legend:

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

    r89121 r89123  
    170170*********************************************************************************************************************************/
    171171static int  vmsvga3dContextDestroyOgl(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid);
    172 static int vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid);
     172static DECLCALLBACK(int) vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid);
    173173static void vmsvgaColor2GLFloatArray(uint32_t color, GLfloat *pRed, GLfloat *pGreen, GLfloat *pBlue, GLfloat *pAlpha);
    174 static int vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData);
    175 static int vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid,  uint32_t index, float plane[4]);
    176 static int vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type);
    177 static int vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext);
    178 static int vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, PVMSVGA3DSURFACE pSurface);
     174static DECLCALLBACK(int) vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData);
     175static DECLCALLBACK(int) vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid,  uint32_t index, float plane[4]);
     176static DECLCALLBACK(int) vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type);
     177static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext);
     178static DECLCALLBACK(int) vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, PVMSVGA3DSURFACE pSurface);
    179179
    180180/* Generated by VBoxDef2LazyLoad from the VBoxSVGA3D.def and VBoxSVGA3DObjC.def files. */
     
    595595 * @param   pThisCC     The VGA/VMSVGA state for ring-3.
    596596 */
    597 static int vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     597static DECLCALLBACK(int) vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    598598{
    599599    int rc;
     
    828828
    829829/* We must delay window creation until the PowerOn phase. Init is too early and will cause failures. */
    830 static int vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     830static DECLCALLBACK(int) vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    831831{
    832832    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    11501150}
    11511151
    1152 static int vmsvga3dBackReset(PVGASTATECC pThisCC)
     1152static DECLCALLBACK(int) vmsvga3dBackReset(PVGASTATECC pThisCC)
    11531153{
    11541154    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    11751175}
    11761176
    1177 static int vmsvga3dBackTerminate(PVGASTATECC pThisCC)
     1177static DECLCALLBACK(int) vmsvga3dBackTerminate(PVGASTATECC pThisCC)
    11781178{
    11791179    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    12161216
    12171217
    1218 static void vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)
     1218static DECLCALLBACK(void) vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)
    12191219{
    12201220    /** @todo Move the visible framebuffer content here, don't wait for the guest to
     
    13811381
    13821382
    1383 static int vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)
     1383static DECLCALLBACK(int) vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)
    13841384{
    13851385    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    20042004 * @param   pSurface            The surface being destroyed.
    20052005 */
    2006 static void vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)
     2006static DECLCALLBACK(void) vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)
    20072007{
    20082008    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    20532053
    20542054
    2055 static int vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,
     2055static DECLCALLBACK(int) vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,
    20562056                                   uint32_t cCopyBoxes, SVGA3dCopyBox *pBox)
    20572057{
     
    23672367 * @param   pSurface            The surface to create the texture for.
    23682368 */
    2369 static int vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,
     2369static DECLCALLBACK(int) vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,
    23702370                              PVMSVGA3DSURFACE pSurface)
    23712371{
     
    26602660 * @param   pContext            The VMSVGA3d context (already current for OGL).
    26612661 */
    2662 static int vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,
     2662static DECLCALLBACK(int) vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,
    26632663                                  PVMSVGA3DSURFACE pDstSurface, uint32_t uDstFace, uint32_t uDstMipmap, SVGA3dBox const *pDstBox,
    26642664                                  PVMSVGA3DSURFACE pSrcSurface, uint32_t uSrcFace, uint32_t uSrcMipmap, SVGA3dBox const *pSrcBox,
     
    28632863 * @param   iBox                The current box number (for Direct 3D).
    28642864 */
    2865 static int vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,
     2865static DECLCALLBACK(int) vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,
    28662866                                  PVMSVGA3DMIPMAPLEVEL pMipLevel, uint32_t uHostFace, uint32_t uHostMipmap,
    28672867                                  SVGAGuestPtr GuestPtr, uint32_t cbGuestPitch, SVGA3dTransferType transfer,
     
    31493149}
    31503150
    3151 static int vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)
     3151static DECLCALLBACK(int) vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)
    31523152{
    31533153    PVMSVGA3DSTATE      pState = pThisCC->svga.p3dState;
     
    37413741    } while(0)
    37423742
    3743 static int vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     3743static DECLCALLBACK(int) vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    37443744{
    37453745    LogRel4(("VMSVGA: vmsvga3dBackDefineScreen: screen %u\n", pScreen->idScreen));
     
    38473847}
    38483848
    3849 static int vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     3849static DECLCALLBACK(int) vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    38503850{
    38513851    LogRel4(("VMSVGA: vmsvga3dBackDestroyScreen: screen %u\n", pScreen->idScreen));
     
    38733873
    38743874/* Blit a surface to the GLX pixmap. */
    3875 static int vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
     3875static DECLCALLBACK(int) vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
    38763876                                    SVGASignedRect destRect, SVGA3dSurfaceImageId srcImage,
    38773877                                    SVGASignedRect srcRect, uint32_t cRects, SVGASignedRect *paRects)
     
    39663966#else /* !RT_OS_LINUX */
    39673967
    3968 static int vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     3968static DECLCALLBACK(int) vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    39693969{
    39703970    RT_NOREF(pThis, pThisCC, pScreen);
     
    39723972}
    39733973
    3974 static int vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     3974static DECLCALLBACK(int) vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    39753975{
    39763976    RT_NOREF(pThisCC, pScreen);
     
    39783978}
    39793979
    3980 static int vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
     3980static DECLCALLBACK(int) vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
    39813981                                    SVGASignedRect destRect, SVGA3dSurfaceImageId srcImage,
    39823982                                    SVGASignedRect srcRect, uint32_t cRects, SVGASignedRect *paRects)
     
    39943994 * @param   cid             Context id
    39953995 */
    3996 static int vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)
     3996static DECLCALLBACK(int) vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)
    39973997{
    39983998    return vmsvga3dContextDefineOgl(pThisCC, cid, 0/*fFlags*/);
     
    41044104 * @param   cid             Context id
    41054105 */
    4106 static int vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)
     4106static DECLCALLBACK(int) vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)
    41074107{
    41084108    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    41334133
    41344134/* Handle resize */
    4135 static int vmsvga3dBackChangeMode(PVGASTATECC pThisCC)
     4135static DECLCALLBACK(int) vmsvga3dBackChangeMode(PVGASTATECC pThisCC)
    41364136{
    41374137    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    41544154
    41554155
    4156 static int vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])
     4156static DECLCALLBACK(int) vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])
    41574157{
    41584158    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    42604260}
    42614261
    4262 static int vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)
     4262static DECLCALLBACK(int) vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)
    42634263{
    42644264    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    43984398}
    43994399
    4400 static int vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
     4400static DECLCALLBACK(int) vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
    44014401{
    44024402    uint32_t                    val = UINT32_MAX; /* Shut up MSC. */
     
    52615261}
    52625262
    5263 static int vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)
     5263static DECLCALLBACK(int) vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)
    52645264{
    52655265    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    55935593}
    55945594
    5595 static int vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
     5595static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
    55965596{
    55975597    GLenum                      val = ~(GLenum)0; /* Shut up MSC. */
     
    59275927}
    59285928
    5929 static int vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)
     5929static DECLCALLBACK(int) vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)
    59305930{
    59315931    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    59765976
    59775977/** @todo Move into separate library as we are using logic from Wine here. */
    5978 static int vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)
     5978static DECLCALLBACK(int) vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)
    59795979{
    59805980    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    61496149}
    61506150
    6151 static int vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)
     6151static DECLCALLBACK(int) vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)
    61526152{
    61536153    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    61856185}
    61866186
    6187 static int vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
     6187static DECLCALLBACK(int) vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
    61886188{
    61896189    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    62266226}
    62276227
    6228 static int vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid,  uint32_t index, float plane[4])
     6228static DECLCALLBACK(int) vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid,  uint32_t index, float plane[4])
    62296229{
    62306230    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    62576257}
    62586258
    6259 static int vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
     6259static DECLCALLBACK(int) vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
    62606260{
    62616261    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    62896289}
    62906290
    6291 static int vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth, uint32_t stencil,
     6291static DECLCALLBACK(int) vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth, uint32_t stencil,
    62926292                                    uint32_t cRects, SVGA3dRect *pRect)
    62936293{
     
    70357035}
    70367036
    7037 static int vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,
     7037static DECLCALLBACK(int) vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,
    70387038                           uint32_t numRanges, SVGA3dPrimitiveRange *pRange, uint32_t cVertexDivisor,
    70397039                           SVGA3dVertexDivisor *pVertexDivisor)
     
    73517351
    73527352
    7353 static int vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type, uint32_t cbData, uint32_t *pShaderData)
     7353static DECLCALLBACK(int) vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type, uint32_t cbData, uint32_t *pShaderData)
    73547354{
    73557355    PVMSVGA3DSHADER       pShader;
     
    74597459}
    74607460
    7461 static int vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)
     7461static DECLCALLBACK(int) vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)
    74627462{
    74637463    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    75087508}
    75097509
    7510 static int vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)
     7510static DECLCALLBACK(int) vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)
    75117511{
    75127512    PVMSVGA3DSTATE      pState = pThisCC->svga.p3dState;
     
    75797579}
    75807580
    7581 static int vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type, SVGA3dShaderConstType ctype, uint32_t cRegisters, uint32_t *pValues)
     7581static DECLCALLBACK(int) vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type, SVGA3dShaderConstType ctype, uint32_t cRegisters, uint32_t *pValues)
    75827582{
    75837583    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    76717671}
    76727672
    7673 static int vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     7673static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    76747674{
    76757675    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    76857685}
    76867686
    7687 static int vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     7687static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    76887688{
    76897689    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    76987698}
    76997699
    7700 static int vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     7700static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    77017701{
    77027702    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    77097709}
    77107710
    7711 static int vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     7711static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    77127712{
    77137713    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    77207720}
    77217721
    7722 static int vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)
     7722static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)
    77237723{
    77247724    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
  • 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);
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r89121 r89123  
    159159*********************************************************************************************************************************/
    160160static void vmsvgaDumpD3DCaps(D3DCAPS9 *pCaps, D3DADAPTER_IDENTIFIER9 const *pai9);
    161 static int vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid);
    162 static int vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState);
    163 static int vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target);
    164 static int vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState);
    165 static int vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect);
    166 static int vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect);
    167 static int vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type);
    168 static int vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid);
    169 static int vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext);
    170 static int vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, PVMSVGA3DSURFACE pSurface);
    171 
    172 
    173 static int vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     161static DECLCALLBACK(int) vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid);
     162static DECLCALLBACK(int) vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState);
     163static DECLCALLBACK(int) vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target);
     164static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState);
     165static DECLCALLBACK(int) vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect);
     166static DECLCALLBACK(int) vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect);
     167static DECLCALLBACK(int) vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type);
     168static DECLCALLBACK(int) vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid);
     169static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext);
     170static DECLCALLBACK(int) vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, PVMSVGA3DSURFACE pSurface);
     171
     172
     173static DECLCALLBACK(int) vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    174174{
    175175    RT_NOREF(pDevIns, pThis);
     
    198198}
    199199
    200 static int vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
     200static DECLCALLBACK(int) vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)
    201201{
    202202    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    287287}
    288288
    289 static int vmsvga3dBackReset(PVGASTATECC pThisCC)
     289static DECLCALLBACK(int) vmsvga3dBackReset(PVGASTATECC pThisCC)
    290290{
    291291    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    308308}
    309309
    310 static int vmsvga3dBackTerminate(PVGASTATECC pThisCC)
     310static DECLCALLBACK(int) vmsvga3dBackTerminate(PVGASTATECC pThisCC)
    311311{
    312312    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    327327}
    328328
    329 static void vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)
     329static DECLCALLBACK(void) vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)
    330330{
    331331    /** @todo Scroll the screen content without requiring the guest to redraw. */
     
    434434
    435435
    436 static int vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)
     436static DECLCALLBACK(int) vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)
    437437{
    438438    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    11101110 * @param   pSurface            The surface being destroyed.
    11111111 */
    1112 static void vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)
     1112static DECLCALLBACK(void) vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)
    11131113{
    11141114    RT_NOREF(pThisCC);
     
    14881488}
    14891489
    1490 static int vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,
     1490static DECLCALLBACK(int) vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,
    14911491                                   uint32_t cCopyBoxes, SVGA3dCopyBox *pBox)
    14921492{
     
    18461846 * @param   pSurface            The surface to create the texture for.
    18471847 */
    1848 static int vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,
     1848static DECLCALLBACK(int) vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,
    18491849                              PVMSVGA3DSURFACE pSurface)
    18501850
     
    22712271 * @param   pContext            The VMSVGA3d context (already current for OGL).
    22722272 */
    2273 static int vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,
     2273static DECLCALLBACK(int) vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,
    22742274                                  PVMSVGA3DSURFACE pDstSurface, uint32_t uDstFace, uint32_t uDstMipmap, SVGA3dBox const *pDstBox,
    22752275                                  PVMSVGA3DSURFACE pSrcSurface, uint32_t uSrcFace, uint32_t uSrcMipmap, SVGA3dBox const *pSrcBox,
     
    23612361 * @param   iBox                The current box number (for Direct 3D).
    23622362 */
    2363 static int vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,
     2363static DECLCALLBACK(int) vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,
    23642364                                  PVMSVGA3DMIPMAPLEVEL pMipLevel, uint32_t uHostFace, uint32_t uHostMipmap,
    23652365                                  SVGAGuestPtr GuestPtr, uint32_t cbGuestPitch, SVGA3dTransferType transfer,
     
    25252525}
    25262526
    2527 static int vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)
     2527static DECLCALLBACK(int) vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)
    25282528{
    25292529    PVMSVGA3DSTATE      pState = pThisCC->svga.p3dState;
     
    25792579 * @param   cid             Context id
    25802580 */
    2581 static int vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)
     2581static DECLCALLBACK(int) vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)
    25822582{
    25832583    int                     rc;
     
    26862686 * @param   cid             Context id
    26872687 */
    2688 static int vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)
     2688static DECLCALLBACK(int) vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)
    26892689{
    26902690    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    28262826}
    28272827
    2828 static int vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     2828static DECLCALLBACK(int) vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    28292829{
    28302830    RT_NOREF(pThis, pThisCC, pScreen);
     
    28322832}
    28332833
    2834 static int vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
     2834static DECLCALLBACK(int) vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)
    28352835{
    28362836    RT_NOREF(pThisCC, pScreen);
     
    28382838}
    28392839
    2840 static int vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
     2840static DECLCALLBACK(int) vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,
    28412841                                    SVGASignedRect destRect, SVGA3dSurfaceImageId srcImage,
    28422842                                    SVGASignedRect srcRect, uint32_t cRects, SVGASignedRect *paRects)
     
    28662866
    28672867/* Handle resize */
    2868 static int vmsvga3dBackChangeMode(PVGASTATECC pThisCC)
     2868static DECLCALLBACK(int) vmsvga3dBackChangeMode(PVGASTATECC pThisCC)
    28692869{
    28702870    PVMSVGA3DSTATE pState = pThisCC->svga.p3dState;
     
    31113111
    31123112
    3113 static int vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])
     3113static DECLCALLBACK(int) vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])
    31143114{
    31153115    D3DTRANSFORMSTATETYPE d3dState;
     
    31913191}
    31923192
    3193 static int vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)
     3193static DECLCALLBACK(int) vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)
    31943194{
    31953195    D3DVIEWPORT9          viewport;
     
    32643264}
    32653265
    3266 static int vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
     3266static DECLCALLBACK(int) vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)
    32673267{
    32683268    DWORD                       val = 0; /* Shut up MSC */
     
    39313931}
    39323932
    3933 static int vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)
     3933static DECLCALLBACK(int) vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)
    39343934{
    39353935    HRESULT        hr;
     
    43574357}
    43584358
    4359 static int vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
     4359static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)
    43604360{
    43614361    DWORD                       val = 0; /* Shut up MSC */
     
    46504650}
    46514651
    4652 static int vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)
     4652static DECLCALLBACK(int) vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)
    46534653{
    46544654    HRESULT               hr;
     
    47014701}
    47024702
    4703 static int vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)
     4703static DECLCALLBACK(int) vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)
    47044704{
    47054705    HRESULT               hr;
     
    47724772}
    47734773
    4774 static int vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)
     4774static DECLCALLBACK(int) vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)
    47754775{
    47764776    HRESULT               hr;
     
    47954795}
    47964796
    4797 static int vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
     4797static DECLCALLBACK(int) vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
    47984798{
    47994799    HRESULT               hr;
     
    48284828}
    48294829
    4830 static int vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, float plane[4])
     4830static DECLCALLBACK(int) vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, float plane[4])
    48314831{
    48324832    HRESULT               hr;
     
    48514851}
    48524852
    4853 static int vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth,
     4853static DECLCALLBACK(int) vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth,
    48544854                                uint32_t stencil, uint32_t cRects, SVGA3dRect *pRect)
    48554855{
     
    51295129}
    51305130
    5131 static int vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,
     5131static DECLCALLBACK(int) vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,
    51325132                                  uint32_t numRanges, SVGA3dPrimitiveRange *pRange,
    51335133                                  uint32_t cVertexDivisor, SVGA3dVertexDivisor *pVertexDivisor)
     
    54815481
    54825482
    5483 static int vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
     5483static DECLCALLBACK(int) vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)
    54845484{
    54855485    HRESULT               hr;
     
    55115511
    55125512
    5513 static int vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type,
     5513static DECLCALLBACK(int) vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type,
    55145514                         uint32_t cbData, uint32_t *pShaderData)
    55155515{
     
    56205620}
    56215621
    5622 static int vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)
     5622static DECLCALLBACK(int) vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)
    56235623{
    56245624    PVMSVGA3DSTATE        pState = pThisCC->svga.p3dState;
     
    56665666}
    56675667
    5668 static int vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)
     5668static DECLCALLBACK(int) vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)
    56695669{
    56705670    PVMSVGA3DSTATE      pState = pThisCC->svga.p3dState;
     
    57345734}
    57355735
    5736 static int vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type,
     5736static DECLCALLBACK(int) vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type,
    57375737                                  SVGA3dShaderConstType ctype, uint32_t cRegisters, uint32_t *pValues)
    57385738{
     
    58285828}
    58295829
    5830 static int vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     5830static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    58315831{
    58325832    RT_NOREF(pThisCC);
     
    58365836}
    58375837
    5838 static int vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     5838static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    58395839{
    58405840    RT_NOREF(pThisCC);
     
    58435843}
    58445844
    5845 static int vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     5845static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    58465846{
    58475847    RT_NOREF(pThisCC);
     
    58525852}
    58535853
    5854 static int vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
     5854static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)
    58555855{
    58565856    RT_NOREF(pThisCC);
     
    58615861}
    58625862
    5863 static int vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)
     5863static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)
    58645864{
    58655865    RT_NOREF(pThisCC);
Note: See TracChangeset for help on using the changeset viewer.

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