Changeset 63134 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Aug 7, 2016 2:17:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r60327 r63134 405 405 static uint32_t vmsvga3dGetDepthFormatSupport(PVMSVGA3DSTATE pState3D, uint32_t idx3dCaps, D3DFORMAT format) 406 406 { 407 RT_NOREF(idx3dCaps); 407 408 HRESULT hr; 408 409 uint32_t result = 0; … … 1060 1061 /* Unknown; only in DX10 & 11 */ 1061 1062 break; 1063 1064 case SVGA3D_FORMAT_MAX: /* shut up MSC */ 1065 case SVGA3D_FORMAT_INVALID: 1066 break; 1062 1067 } 1063 1068 AssertFailedReturn(D3DFMT_UNKNOWN); … … 1088 1093 void vmsvga3dBackSurfaceDestroy(PVMSVGA3DSTATE pState, PVMSVGA3DSURFACE pSurface) 1089 1094 { 1095 RT_NOREF(pState); 1090 1096 RTAvlU32Destroy(&pSurface->pSharedObjectTree, vmsvga3dSharedSurfaceDestroyTree, pSurface); 1091 1097 Assert(pSurface->pSharedObjectTree == NULL); … … 1164 1170 static PVMSVGA3DSHAREDSURFACE vmsvga3dSurfaceGetSharedCopy(PVGASTATE pThis, PVMSVGA3DCONTEXT pContext, PVMSVGA3DSURFACE pSurface) 1165 1171 { 1172 RT_NOREF(pThis); 1166 1173 Assert(pSurface->hSharedObject); 1167 1174 … … 1205 1212 static int vmsvga3dSurfaceTrackUsage(PVMSVGA3DSTATE pState, PVMSVGA3DCONTEXT pContext, PVMSVGA3DSURFACE pSurface) 1206 1213 { 1214 RT_NOREF(pState); 1207 1215 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL 1208 1216 Assert(pSurface->id != SVGA3D_INVALID_ID); … … 1254 1262 int vmsvga3dSurfaceFlush(PVGASTATE pThis, PVMSVGA3DSURFACE pSurface) 1255 1263 { 1264 RT_NOREF(pThis); 1256 1265 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL 1257 1266 HRESULT hr; … … 1542 1551 1543 1552 { 1553 RT_NOREF(pState); 1544 1554 HRESULT hr; 1545 1555 IDirect3DTexture9 *pTexture; … … 2143 2153 PVMSVGA3DSTATE pState = pThis->svga.p3dState; 2144 2154 PVMSVGA3DSURFACE pSurface; 2145 int rc = VINF_SUCCESS;2146 2155 PVMSVGA3DCONTEXT pContext; 2147 2156 uint32_t cid; … … 3052 3061 int vmsvga3dSetRenderState(PVGASTATE pThis, uint32_t cid, uint32_t cRenderStates, SVGA3dRenderState *pRenderState) 3053 3062 { 3054 DWORD val ;3063 DWORD val = 0; /* Shut up MSC */ 3055 3064 HRESULT hr; 3056 3065 PVMSVGA3DCONTEXT pContext; … … 3710 3719 */ 3711 3720 break; 3721 3722 case SVGA3D_RS_MAX: /* shut up MSC */ 3723 case SVGA3D_RS_INVALID: 3724 AssertFailedBreak(); 3712 3725 } 3713 3726 … … 4155 4168 int vmsvga3dSetTextureState(PVGASTATE pThis, uint32_t cid, uint32_t cTextureStates, SVGA3dTextureState *pTextureState) 4156 4169 { 4157 DWORD val ;4170 DWORD val = 0; /* Shut up MSC */ 4158 4171 HRESULT hr; 4159 4172 PVMSVGA3DCONTEXT pContext; … … 4404 4417 AssertFailed(); 4405 4418 break; 4419 4420 case SVGA3D_TS_MAX: /* shut up MSC */ 4421 case SVGA3D_TS_INVALID: 4422 AssertFailedBreak(); 4406 4423 } 4407 4424 … … 4853 4870 uint32_t cVertexDivisor, SVGA3dVertexDivisor *pVertexDivisor) 4854 4871 { 4872 RT_NOREF(pVertexDivisor); 4855 4873 PVMSVGA3DCONTEXT pContext; 4856 4874 PVMSVGA3DSTATE pState = pThis->svga.p3dState; 4857 4875 AssertReturn(pState, VERR_INTERNAL_ERROR); 4858 int rc ;4876 int rc = VINF_SUCCESS; 4859 4877 HRESULT hr; 4860 4878 uint32_t iCurrentVertex, iCurrentStreamId; … … 5485 5503 int vmsvga3dQueryBegin(PVGASTATE pThis, uint32_t cid, SVGA3dQueryType type) 5486 5504 { 5505 RT_NOREF(pThis, cid, type); 5487 5506 AssertFailed(); 5488 5507 return VERR_NOT_IMPLEMENTED; … … 5491 5510 int vmsvga3dQueryEnd(PVGASTATE pThis, uint32_t cid, SVGA3dQueryType type, SVGAGuestPtr guestResult) 5492 5511 { 5512 RT_NOREF(pThis, cid, type, guestResult); 5493 5513 AssertFailed(); 5494 5514 return VERR_NOT_IMPLEMENTED; … … 5497 5517 int vmsvga3dQueryWait(PVGASTATE pThis, uint32_t cid, SVGA3dQueryType type, SVGAGuestPtr guestResult) 5498 5518 { 5519 RT_NOREF(pThis, cid, type, guestResult); 5499 5520 AssertFailed(); 5500 5521 return VERR_NOT_IMPLEMENTED;
Note:
See TracChangeset
for help on using the changeset viewer.