Changeset 89123 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
- Timestamp:
- May 17, 2021 8:16:19 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
r89122 r89123 187 187 188 188 189 static voidvmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface);189 static DECLCALLBACK(void) vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface); 190 190 191 191 … … 1764 1764 1765 1765 1766 static intvmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)1766 static DECLCALLBACK(int) vmsvga3dBackInit(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC) 1767 1767 { 1768 1768 RT_NOREF(pDevIns, pThis); … … 1796 1796 1797 1797 1798 static intvmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC)1798 static DECLCALLBACK(int) vmsvga3dBackPowerOn(PPDMDEVINS pDevIns, PVGASTATE pThis, PVGASTATECC pThisCC) 1799 1799 { 1800 1800 RT_NOREF(pDevIns, pThis); … … 1811 1811 1812 1812 1813 static intvmsvga3dBackTerminate(PVGASTATECC pThisCC)1813 static DECLCALLBACK(int) vmsvga3dBackTerminate(PVGASTATECC pThisCC) 1814 1814 { 1815 1815 PVMSVGA3DSTATE pState = pThisCC->svga.p3dState; … … 1828 1828 1829 1829 1830 static intvmsvga3dBackReset(PVGASTATECC pThisCC)1830 static DECLCALLBACK(int) vmsvga3dBackReset(PVGASTATECC pThisCC) 1831 1831 { 1832 1832 PVMSVGA3DSTATE pState = pThisCC->svga.p3dState; … … 1975 1975 1976 1976 1977 static intvmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)1977 static DECLCALLBACK(int) vmsvga3dBackDefineScreen(PVGASTATE pThis, PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen) 1978 1978 { 1979 1979 RT_NOREF(pThis, pThisCC, pScreen); … … 2019 2019 2020 2020 2021 static intvmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen)2021 static DECLCALLBACK(int) vmsvga3dBackDestroyScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen) 2022 2022 { 2023 2023 PVMSVGA3DSTATE pState = pThisCC->svga.p3dState; … … 2037 2037 2038 2038 2039 static intvmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen,2039 static DECLCALLBACK(int) vmsvga3dBackSurfaceBlitToScreen(PVGASTATECC pThisCC, VMSVGASCREENOBJECT *pScreen, 2040 2040 SVGASignedRect destRect, SVGA3dSurfaceImageId srcImage, 2041 2041 SVGASignedRect srcRect, uint32_t cRects, SVGASignedRect *paRects) … … 2510 2510 */ 2511 2511 2512 static intvmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val)2512 static DECLCALLBACK(int) vmsvga3dBackQueryCaps(PVGASTATECC pThisCC, SVGA3dDevCapIndex idx3dCaps, uint32_t *pu32Val) 2513 2513 { 2514 2514 PVMSVGA3DSTATE pState = pThisCC->svga.p3dState; … … 3068 3068 3069 3069 3070 static intvmsvga3dBackChangeMode(PVGASTATECC pThisCC)3070 static DECLCALLBACK(int) vmsvga3dBackChangeMode(PVGASTATECC pThisCC) 3071 3071 { 3072 3072 PVMSVGA3DSTATE pState = pThisCC->svga.p3dState; … … 3077 3077 3078 3078 3079 static intvmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src,3079 static DECLCALLBACK(int) vmsvga3dBackSurfaceCopy(PVGASTATECC pThisCC, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src, 3080 3080 uint32_t cCopyBoxes, SVGA3dCopyBox *pBox) 3081 3081 { … … 3090 3090 3091 3091 3092 static voidvmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport)3092 static DECLCALLBACK(void) vmsvga3dBackUpdateHostScreenViewport(PVGASTATECC pThisCC, uint32_t idScreen, VMSVGAVIEWPORT const *pOldViewport) 3093 3093 { 3094 3094 RT_NOREF(pThisCC, idScreen, pOldViewport); … … 3103 3103 * @param cid Context id 3104 3104 */ 3105 static intvmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid)3105 static DECLCALLBACK(int) vmsvga3dBackContextDefine(PVGASTATECC pThisCC, uint32_t cid) 3106 3106 { 3107 3107 RT_NOREF(cid); … … 3122 3122 * @param cid Context id 3123 3123 */ 3124 static intvmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid)3124 static DECLCALLBACK(int) vmsvga3dBackContextDestroy(PVGASTATECC pThisCC, uint32_t cid) 3125 3125 { 3126 3126 RT_NOREF(cid); … … 3134 3134 3135 3135 3136 static intvmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16])3136 static DECLCALLBACK(int) vmsvga3dBackSetTransform(PVGASTATECC pThisCC, uint32_t cid, SVGA3dTransformType type, float matrix[16]) 3137 3137 { 3138 3138 RT_NOREF(cid, type, matrix); … … 3146 3146 3147 3147 3148 static intvmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange)3148 static DECLCALLBACK(int) vmsvga3dBackSetZRange(PVGASTATECC pThisCC, uint32_t cid, SVGA3dZRange zRange) 3149 3149 { 3150 3150 RT_NOREF(cid, zRange); … … 3158 3158 3159 3159 3160 static intvmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState)3160 static DECLCALLBACK(int) vmsvga3dBackSetRenderState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState) 3161 3161 { 3162 3162 RT_NOREF(cid, cRenderStates, pRenderState); … … 3170 3170 3171 3171 3172 static intvmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target)3172 static DECLCALLBACK(int) vmsvga3dBackSetRenderTarget(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRenderTargetType type, SVGA3dSurfaceImageId target) 3173 3173 { 3174 3174 RT_NOREF(cid, type, target); … … 3182 3182 3183 3183 3184 static intvmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState)3184 static DECLCALLBACK(int) vmsvga3dBackSetTextureState(PVGASTATECC pThisCC, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState) 3185 3185 { 3186 3186 RT_NOREF(cid, cTextureStates, pTextureState); … … 3194 3194 3195 3195 3196 static intvmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial)3196 static DECLCALLBACK(int) vmsvga3dBackSetMaterial(PVGASTATECC pThisCC, uint32_t cid, SVGA3dFace face, SVGA3dMaterial *pMaterial) 3197 3197 { 3198 3198 RT_NOREF(cid, face, pMaterial); … … 3206 3206 3207 3207 3208 static intvmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData)3208 static DECLCALLBACK(int) vmsvga3dBackSetLightData(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, SVGA3dLightData *pData) 3209 3209 { 3210 3210 RT_NOREF(cid, index, pData); … … 3218 3218 3219 3219 3220 static intvmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled)3220 static DECLCALLBACK(int) vmsvga3dBackSetLightEnabled(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, uint32_t enabled) 3221 3221 { 3222 3222 RT_NOREF(cid, index, enabled); … … 3230 3230 3231 3231 3232 static intvmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)3232 static DECLCALLBACK(int) vmsvga3dBackSetViewPort(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect) 3233 3233 { 3234 3234 RT_NOREF(cid, pRect); … … 3242 3242 3243 3243 3244 static intvmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, float plane[4])3244 static DECLCALLBACK(int) vmsvga3dBackSetClipPlane(PVGASTATECC pThisCC, uint32_t cid, uint32_t index, float plane[4]) 3245 3245 { 3246 3246 RT_NOREF(cid, index, plane); … … 3254 3254 3255 3255 3256 static intvmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth,3256 static DECLCALLBACK(int) vmsvga3dBackCommandClear(PVGASTATECC pThisCC, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth, 3257 3257 uint32_t stencil, uint32_t cRects, SVGA3dRect *pRect) 3258 3258 { … … 3275 3275 3276 3276 3277 static intvmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl,3277 static DECLCALLBACK(int) vmsvga3dBackDrawPrimitives(PVGASTATECC pThisCC, uint32_t cid, uint32_t numVertexDecls, SVGA3dVertexDecl *pVertexDecl, 3278 3278 uint32_t numRanges, SVGA3dPrimitiveRange *pRange, 3279 3279 uint32_t cVertexDivisor, SVGA3dVertexDivisor *pVertexDivisor) … … 3289 3289 3290 3290 3291 static intvmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect)3291 static DECLCALLBACK(int) vmsvga3dBackSetScissorRect(PVGASTATECC pThisCC, uint32_t cid, SVGA3dRect *pRect) 3292 3292 { 3293 3293 RT_NOREF(cid, pRect); … … 3301 3301 3302 3302 3303 static intvmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter)3303 static DECLCALLBACK(int) vmsvga3dBackGenerateMipmaps(PVGASTATECC pThisCC, uint32_t sid, SVGA3dTextureFilter filter) 3304 3304 { 3305 3305 RT_NOREF(sid, filter); … … 3313 3313 3314 3314 3315 static intvmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type,3315 static DECLCALLBACK(int) vmsvga3dBackShaderDefine(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type, 3316 3316 uint32_t cbData, uint32_t *pShaderData) 3317 3317 { … … 3326 3326 3327 3327 3328 static intvmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type)3328 static DECLCALLBACK(int) vmsvga3dBackShaderDestroy(PVGASTATECC pThisCC, uint32_t cid, uint32_t shid, SVGA3dShaderType type) 3329 3329 { 3330 3330 RT_NOREF(cid, shid, type); … … 3338 3338 3339 3339 3340 static intvmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid)3340 static DECLCALLBACK(int) vmsvga3dBackShaderSet(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t cid, SVGA3dShaderType type, uint32_t shid) 3341 3341 { 3342 3342 RT_NOREF(pContext, cid, type, shid); … … 3350 3350 3351 3351 3352 static intvmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type,3352 static DECLCALLBACK(int) vmsvga3dBackShaderSetConst(PVGASTATECC pThisCC, uint32_t cid, uint32_t reg, SVGA3dShaderType type, 3353 3353 SVGA3dShaderConstType ctype, uint32_t cRegisters, uint32_t *pValues) 3354 3354 { … … 3369 3369 * @param pSurface The surface being destroyed. 3370 3370 */ 3371 static voidvmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface)3371 static DECLCALLBACK(void) vmsvga3dBackSurfaceDestroy(PVGASTATECC pThisCC, PVMSVGA3DSURFACE pSurface) 3372 3372 { 3373 3373 RT_NOREF(pThisCC); … … 3421 3421 * @param pContext The VMSVGA3d context (already current for OGL). 3422 3422 */ 3423 static intvmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState,3423 static DECLCALLBACK(int) vmsvga3dBackSurfaceStretchBlt(PVGASTATE pThis, PVMSVGA3DSTATE pState, 3424 3424 PVMSVGA3DSURFACE pDstSurface, uint32_t uDstFace, uint32_t uDstMipmap, SVGA3dBox const *pDstBox, 3425 3425 PVMSVGA3DSURFACE pSrcSurface, uint32_t uSrcFace, uint32_t uSrcMipmap, SVGA3dBox const *pSrcBox, … … 3453 3453 * @param iBox The current box number (for Direct 3D). 3454 3454 */ 3455 static intvmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface,3455 static DECLCALLBACK(int) vmsvga3dBackSurfaceDMACopyBox(PVGASTATE pThis, PVGASTATECC pThisCC, PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface, 3456 3456 PVMSVGA3DMIPMAPLEVEL pMipLevel, uint32_t uHostFace, uint32_t uHostMipmap, 3457 3457 SVGAGuestPtr GuestPtr, uint32_t cbGuestPitch, SVGA3dTransferType transfer, … … 3626 3626 * @param pSurface The surface to create the texture for. 3627 3627 */ 3628 static intvmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext,3628 static DECLCALLBACK(int) vmsvga3dBackCreateTexture(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t idAssociatedContext, 3629 3629 PVMSVGA3DSURFACE pSurface) 3630 3630 … … 3637 3637 3638 3638 3639 static intvmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)3639 static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryCreate(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext) 3640 3640 { 3641 3641 RT_NOREF(pThisCC, pContext); … … 3645 3645 3646 3646 3647 static intvmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)3647 static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryBegin(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext) 3648 3648 { 3649 3649 RT_NOREF(pThisCC, pContext); … … 3653 3653 3654 3654 3655 static intvmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)3655 static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryEnd(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext) 3656 3656 { 3657 3657 RT_NOREF(pThisCC, pContext); … … 3661 3661 3662 3662 3663 static intvmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels)3663 static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryGetData(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext, uint32_t *pu32Pixels) 3664 3664 { 3665 3665 RT_NOREF(pThisCC, pContext); … … 3670 3670 3671 3671 3672 static intvmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext)3672 static DECLCALLBACK(int) vmsvga3dBackOcclusionQueryDelete(PVGASTATECC pThisCC, PVMSVGA3DCONTEXT pContext) 3673 3673 { 3674 3674 RT_NOREF(pThisCC, pContext);
Note:
See TracChangeset
for help on using the changeset viewer.