Changeset 78263 in vbox
- Timestamp:
- Apr 23, 2019 6:41:06 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 36 edited
-
Config.kmk (modified) (1 diff)
-
src/VBox/GuestHost/OpenGL/include/cr_spu.h (modified) (1 diff)
-
src/VBox/GuestHost/OpenGL/include/cr_unpack.h (modified) (1 diff)
-
src/VBox/GuestHost/OpenGL/spu_loader/choosevisual.c (modified) (1 diff)
-
src/VBox/GuestHost/OpenGL/state_tracker/state_client.c (modified) (3 diffs)
-
src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c (modified) (2 diffs)
-
src/VBox/GuestHost/OpenGL/state_tracker/state_init.c (modified) (1 diff)
-
src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c (modified) (3 diffs)
-
src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c (modified) (2 diffs)
-
src/VBox/GuestHost/OpenGL/state_tracker/state_transform.c (modified) (3 diffs)
-
src/VBox/GuestHost/OpenGL/util/vboxhgcm.c (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_base.cpp (modified) (12 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window_rootvr.cpp (modified) (2 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp (modified) (12 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server.h (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_boundsinfo.cpp (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_bufferobject.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_clear.cpp (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_getpointer.cpp (modified) (2 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.cpp (modified) (10 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.cpp (modified) (22 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.cpp (modified) (5 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.cpp (modified) (5 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_projmatrix.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_rpw.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_stream.cpp (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_viewport.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.cpp (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/render/renderspu.c (modified) (7 diffs)
-
src/VBox/HostServices/SharedOpenGL/render/renderspu.h (modified) (3 diffs)
-
src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c (modified) (2 diffs)
-
src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c (modified) (15 diffs)
-
src/VBox/HostServices/SharedOpenGL/unpacker/unpack_program.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r78190 r78263 7349 7349 TEMPLATE_VBOXCROGLR3HOSTDLL_OBJCFLAGS = $(TEMPLATE_VBOXR3NP_OBJCFLAGS) -Wno-deprecated-declarations 7350 7350 else ifeq ($(KBUILD_TARGET),win) 7351 # -wd4255: cr_spu.h(146) : warning C4255: 'wglGetCurrentContextFunc_t' : no function prototype given: converting '()' to '(void)'7352 # -wd4296: udptcpip.c(662) : warning C4296: '>=' : expression is always true7353 # -wd4245: udptcpip.c(174) : warning C4245: '=' : conversion from 'int' to 'CRSocket', signed/unsigned mismatch7354 # -wd4668: tcpip.c(961) : warning C4668: 'CRAPPFAKER_SHOULD_DIE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'7355 # -wd4005: v7.1\include\sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition7356 # -wd4057: state_lists.c(196) : warning C4057: 'function' : 'GLint *' differs in indirection to slightly different base types from 'GLenum *'7357 # -wd4389: renderspu.c(750) : warning C4389: '!=' : signed/unsigned mismatch7358 7351 # -wd4054: renderspu_wgl.c(281) : warning C4054: 'type cast' : from function pointer 'HWND (__cdecl *)()' to data pointer 'void *' 7359 7352 # -wd4055: renderspu.c(1553) : warning C4055: 'type cast' : from data pointer 'const GLvoid *' to function pointer 'PFNVCRSERVER_CLIENT_CALLOUT' 7360 # -wd4312: renderspu_wgl.c(1420) : warning C4312: 'type cast' : conversion from 'GLint' to 'HDC' of greater size [TODO: check this one out]7361 # -wd4305: renderspu_wgl.c(1118) : warning C4305: 'type cast' : truncation from 'uint64_t' to 'void *' [TODO: check this one out]7362 # -wd4306: renderspu_wgl.c(1420) : warning C4306: 'type cast' : conversion from 'GLint' to 'HDC' of greater size [TODO: check this one out]7363 # -wd4189: server_config.c(111) : warning C4189: 'my_rank' : local variable is initialized but not referenced7364 # -wd4100: vboxhgcm.c(1365) : warning C4100: 'conn' : unreferenced formal parameter7365 7353 TEMPLATE_VBOXCROGLR3HOSTDLL_CFLAGS = $(TEMPLATE_$(TEMPLATE_VBOXCROGLR3HOSTDLL_EXTENDS)_CFLAGS) \ 7366 -wd4255 -wd4296 -wd4245 -wd4668 -wd4005 -wd4057 -wd4389 -wd4054 -wd4055 -wd4312 -wd4305 -wd4306 -wd4189 -wd4100 7367 TEMPLATE_VBOXCROGLR3HOSTDLL_CXXFLAGS = $(TEMPLATE_$(TEMPLATE_VBOXCROGLR3HOSTDLL_EXTENDS)_CXXFLAGS) \ 7368 -wd4245 -wd4389 -wd4189 -wd4100 7354 -wd4055 7369 7355 endif 7370 7356 -
trunk/src/VBox/GuestHost/OpenGL/include/cr_spu.h
r78190 r78263 114 114 typedef int (WGL_APIENTRY *wglDescribePixelFormatFunc_t)(HDC, int, UINT, CONST PIXELFORMATDESCRIPTOR *); 115 115 typedef int (WGL_APIENTRY *wglSetPixelFormatFunc_t)(HDC, int, CONST PIXELFORMATDESCRIPTOR *); 116 typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)( );117 typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)( );116 typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)(void); 117 typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)(LPCSTR Arg1); 118 118 typedef BOOL (WGL_APIENTRY *wglChoosePixelFormatEXTFunc_t)(HDC, const int *, const FLOAT *, UINT, int *, UINT *); 119 119 typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribivEXTFunc_t)(HDC, int, int, UINT, int *, int *); 120 120 typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribfvEXTFunc_t)(HDC, int, int, UINT, int *, float *); 121 121 typedef const GLubyte *(WGL_APIENTRY *glGetStringFunc_t)( GLenum ); 122 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)( );122 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)(void); 123 123 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringARBFunc_t)(HDC); 124 124 /*@}*/ -
trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h
r78198 r78263 94 94 return; \ 95 95 } \ 96 size_t int_cbAccessVerified = (a_cbAccess) 96 size_t int_cbAccessVerified = (a_cbAccess); RT_NOREF(int_cbAccessVerified) 97 97 98 98 #define CHECK_BUFFER_SIZE_STATIC_LAST(a_pState, a_offAccessLast, a_Type) CHECK_BUFFER_SIZE_STATIC(a_pState, (a_offAccessLast) + sizeof( a_Type )) -
trunk/src/VBox/GuestHost/OpenGL/spu_loader/choosevisual.c
r69392 r78263 21 21 { 22 22 /* placeholder */ 23 RT_NOREF(ws, visBits); 23 24 return 0; 24 25 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c
r78116 r78263 1085 1085 unsigned char *base = (unsigned char *) p; 1086 1086 1087 #ifndef IN_GUEST 1088 RT_NOREF(fRealPtr); 1089 #endif 1090 1087 1091 if (g->current.inBeginEnd) 1088 1092 { … … 1579 1583 } 1580 1584 1581 void STATE_APIENTRY crStateUnlockArraysEXT( )1585 void STATE_APIENTRY crStateUnlockArraysEXT(void) 1582 1586 { 1583 1587 CRContext *g = GetCurrentContext(); … … 1728 1732 else 1729 1733 { 1730 zvMax = ~ 0;1734 zvMax = ~UINT32_C(0); 1731 1735 break; 1732 1736 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c
r78190 r78263 1281 1281 return result; 1282 1282 #else 1283 RT_NOREF(program, name); 1283 1284 crWarning("crStateGetUniformLocation called on host side!!"); 1284 1285 return -1; … … 1316 1317 return result; 1317 1318 #else 1319 RT_NOREF(program, name); 1318 1320 crWarning("crStateGetAttribLocation called on host side!!"); 1319 1321 return -1; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c
r69392 r78263 787 787 } 788 788 789 void crStateCleanupCurrent( )789 void crStateCleanupCurrent(void) 790 790 { 791 791 crStateSetCurrentEx( NULL, GL_TRUE ); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c
r69392 r78263 59 59 #define CRSTATE_SET_ENABLED(state, cap) CRSTATE_SET_CAP(state, diff_api.IsEnabled(cap), "%u") 60 60 61 #define CRSTATE_SET_ENUM(state, cap) {GLenum _e=g->state; diff_api.GetIntegerv(cap, &_e); CRSTATE_SET_CAP(state, _e, "%#x");}61 #define CRSTATE_SET_ENUM(state, cap) {GLenum _e=g->state; diff_api.GetIntegerv(cap, (GLint *)&_e); CRSTATE_SET_CAP(state, _e, "%#x");} 62 62 #define CRSTATE_SET_FLOAT(state, cap) {GLfloat _f=g->state; diff_api.GetFloatv(cap, &_f); CRSTATE_SET_CAP(state, _f, "%f");} 63 63 #define CRSTATE_SET_INT(state, cap) {GLint _i=g->state; diff_api.GetIntegerv(cap, &_i); CRSTATE_SET_CAP(state, _i, "%i");} … … 224 224 { 225 225 GLuint buf = 0; 226 diff_api.GetIntegerv(GL_DRAW_BUFFER, &buf);226 diff_api.GetIntegerv(GL_DRAW_BUFFER, (GLint *)&buf); 227 227 228 228 if (buf == GL_COLOR_ATTACHMENT0_EXT && (bbFbo || fbFbo)) 229 229 { 230 230 GLuint binding = 0; 231 diff_api.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &binding);231 diff_api.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, (GLint *)&binding); 232 232 if (!binding) 233 233 { … … 257 257 { 258 258 GLuint buf = 0; 259 diff_api.GetIntegerv(GL_READ_BUFFER, &buf);259 diff_api.GetIntegerv(GL_READ_BUFFER, (GLint *)&buf); 260 260 261 261 if (buf == GL_COLOR_ATTACHMENT0_EXT && (bbFbo || fbFbo)) 262 262 { 263 263 GLuint binding = 0; 264 diff_api.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, &binding);264 diff_api.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, (GLint *)&binding); 265 265 if (!binding) 266 266 { -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
r78117 r78263 1106 1106 int32_t rc; 1107 1107 1108 RT_NOREF(data1); 1109 1108 1110 rc = SSMR3PutMem(pSSM, &key, sizeof(key)); 1109 1111 CRASSERT(rc == VINF_SUCCESS); … … 1809 1811 #include "state_bits_globalop.h" 1810 1812 #undef CRSTATE_BITS_OP 1813 #else 1814 RT_NOREF(pSSM); 1811 1815 #endif 1812 1816 return VINF_SUCCESS; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_transform.c
r69392 r78263 343 343 } 344 344 345 void STATE_APIENTRY crStateLoadIdentity( )345 void STATE_APIENTRY crStateLoadIdentity(void) 346 346 { 347 347 CRContext *g = GetCurrentContext(); … … 366 366 } 367 367 368 void STATE_APIENTRY crStatePopMatrix( )368 void STATE_APIENTRY crStatePopMatrix(void) 369 369 { 370 370 CRContext *g = GetCurrentContext(); … … 398 398 } 399 399 400 void STATE_APIENTRY crStatePushMatrix( )400 void STATE_APIENTRY crStatePushMatrix(void) 401 401 { 402 402 CRContext *g = GetCurrentContext(); -
trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c
r78190 r78263 1354 1354 1355 1355 #else /* !IN_GUEST */ 1356 RT_NOREF(conn); 1356 1357 crError("crVBoxHGCMDoConnect called on host side!"); 1357 1358 CRASSERT(FALSE); -
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r76787 r78263 1575 1575 BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved) 1576 1576 { 1577 RT_NOREF(hDLLInst); 1577 1578 (void) lpvReserved; 1578 1579 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_base.cpp
r76553 r78263 130 130 int CrFbDisplayBase::UpdateBegin(struct CR_FRAMEBUFFER *pFb) 131 131 { 132 RT_NOREF(pFb); 133 132 134 ++mcUpdates; 133 135 Assert(!mFlags.fRegionsShanged || mcUpdates > 1); … … 138 140 void CrFbDisplayBase::UpdateEnd(struct CR_FRAMEBUFFER *pFb) 139 141 { 142 RT_NOREF(pFb); 143 140 144 --mcUpdates; 141 145 Assert(mcUpdates < UINT32_MAX/2); … … 147 151 int CrFbDisplayBase::EntryCreated(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 148 152 { 153 RT_NOREF(pFb, hEntry); 154 149 155 if (!mcUpdates) 150 156 { … … 158 164 int CrFbDisplayBase::EntryAdded(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 159 165 { 166 RT_NOREF(pFb, hEntry); 167 160 168 if (!mcUpdates) 161 169 { … … 171 179 HCR_FRAMEBUFFER_ENTRY hReplacedEntry) 172 180 { 181 RT_NOREF(pFb, hNewEntry, hReplacedEntry); 182 173 183 if (!mcUpdates) 174 184 { … … 182 192 int CrFbDisplayBase::EntryTexChanged(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 183 193 { 194 RT_NOREF(pFb, hEntry); 195 184 196 if (!mcUpdates) 185 197 { … … 193 205 int CrFbDisplayBase::EntryRemoved(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 194 206 { 207 RT_NOREF(pFb, hEntry); 208 195 209 if (!mcUpdates) 196 210 { … … 205 219 int CrFbDisplayBase::EntryDestroyed(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 206 220 { 221 RT_NOREF(pFb, hEntry); 207 222 return VINF_SUCCESS; 208 223 } … … 211 226 int CrFbDisplayBase::EntryPosChanged(struct CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 212 227 { 228 RT_NOREF(pFb, hEntry); 229 213 230 if (!mcUpdates) 214 231 { … … 223 240 int CrFbDisplayBase::RegionsChanged(struct CR_FRAMEBUFFER *pFb) 224 241 { 242 RT_NOREF(pFb); 243 225 244 if (!mcUpdates) 226 245 { … … 235 254 int CrFbDisplayBase::FramebufferChanged(struct CR_FRAMEBUFFER *pFb) 236 255 { 256 RT_NOREF(pFb); 257 237 258 if (!mcUpdates) 238 259 { … … 349 370 DECLCALLBACK(void) CrFbDisplayBase::slotEntryReleaseCB(HCR_FRAMEBUFFER hFb, HCR_FRAMEBUFFER_ENTRY hEntry, void *pvContext) 350 371 { 372 RT_NOREF(hFb, hEntry, pvContext); 351 373 } 352 374 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window.cpp
r76553 r78263 22 22 mpWindow(NULL), 23 23 mViewportRect(*pViewportRect), 24 mu32Screen(~ 0),24 mu32Screen(~UINT32_C(0)), 25 25 mParentId(parentId) 26 26 { … … 232 232 } 233 233 234 CrFbWindow * pOld = mpWindow;235 234 if (mpWindow) 236 235 windowDetach(); … … 324 323 CrFbDisplayBase::onUpdateEnd(); 325 324 bool fVisible = isVisible(); 326 if ( mFlags.fNeVisible!= fVisible || mFlags.fNeForce)325 if (RT_BOOL(mFlags.fNeVisible) != fVisible || mFlags.fNeForce) 327 326 { 328 327 crVBoxServerNotifyEvent(mu32Screen, -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/display_window_rootvr.cpp
r76553 r78263 136 136 } 137 137 138 const VBOXVR_SCR_COMPOSITOR_ENTRY* pSrcEntry = CrFbEntryGetCompositorEntry(hEntry);139 138 VBOXVR_SCR_COMPOSITOR_ENTRY *pMyEntry = (VBOXVR_SCR_COMPOSITOR_ENTRY*)CrFbDDataEntryGet(hEntry, slotGet()); 140 139 CrVrScrCompositorEntryCleanup(pMyEntry); … … 322 321 void CrFbDisplayWindowRootVr::rootVrTranslateForPos() 323 322 { 324 const RTRECT *pRect = getViewportRect();325 323 const struct VBVAINFOSCREEN* pScreen = CrFbGetScreenInfo(getFramebuffer()); 326 324 int32_t x = pScreen->i32OriginX; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp
r78106 r78263 222 222 int32_t dstHeight = pDstRect->yBottom - pDstRect->yTop; 223 223 224 RTPOINT DstPoint = {pDstRect->xLeft, pDstRect->yTop};225 224 float strX = ((float)dstWidth) / srcWidth; 226 225 float strY = ((float)dstHeight) / srcHeight; … … 472 471 473 472 return rc; 473 #else 474 RT_NOREF(hFb, pSrcRectSize, pDstRect, cRects, pRects, pImg); 474 475 #endif 475 476 } … … 682 683 static void crFbBltPutContentsFbVram(HCR_FRAMEBUFFER hFb, const RTPOINT *pPos, uint32_t cRects, const RTRECT *pRects, CR_BLITTER_IMG *pSrc) 683 684 { 684 const RTRECT *pCompRect = CrVrScrCompositorRectGet(&hFb->Compositor);685 686 685 CR_BLITTER_IMG FbImg; 687 686 … … 758 757 } 759 758 760 bool fRegChanged = false;761 759 for (uint32_t i = 0; i < cCompRects; ++i) 762 760 { … … 1268 1266 void CrFbEntryAddRef(CR_FRAMEBUFFER *pFb, HCR_FRAMEBUFFER_ENTRY hEntry) 1269 1267 { 1268 RT_NOREF(pFb); 1270 1269 ++hEntry->cRefs; 1271 1270 } … … 1433 1432 } 1434 1433 1435 bool fChanged = 0; 1436 VBOXVR_SCR_COMPOSITOR_ENTRY *pReplacedScrEntry = NULL; 1434 bool fChanged = false; 1437 1435 VBOXVR_SCR_COMPOSITOR_ENTRY *pNewEntry; 1438 1436 bool fEntryWasInList; … … 1868 1866 } 1869 1867 } 1868 #else 1869 RT_NOREF(idScreen); 1870 1870 #endif 1871 1871 return VINF_SUCCESS; … … 2081 2081 CR_FB_INFO *pFbInfo = &g_CrPresenter.aFbInfos[idFb]; 2082 2082 CR_FBDISPLAY_INFO *pDpInfo = &g_CrPresenter.aDisplayInfos[i]; 2083 if (pDpInfo->iFb != idFb)2083 if (pDpInfo->iFb != (int32_t)idFb) 2084 2084 { 2085 2085 WARN(("target not connected")); … … 2304 2304 CR_FB_INFO *pFbInfo = &g_CrPresenter.aFbInfos[idFb]; 2305 2305 CR_FBDISPLAY_INFO *pDpInfo = &g_CrPresenter.aDisplayInfos[i]; 2306 if (pDpInfo->iFb == idFb)2306 if (pDpInfo->iFb == (int32_t)idFb) 2307 2307 { 2308 2308 WARN(("target not connected")); … … 2909 2909 if (hFb) 2910 2910 { 2911 Assert(hFb->ScreenInfo.u32ViewIndex == i);2911 Assert(hFb->ScreenInfo.u32ViewIndex == (uint32_t)i); 2912 2912 rc = SSMR3PutU32(pSSM, hFb->ScreenInfo.u32ViewIndex); 2913 2913 AssertRCReturn(rc, rc); … … 2954 2954 int CrFbEntryLoadState(CR_FRAMEBUFFER *pFb, PSSMHANDLE pSSM, uint32_t version) 2955 2955 { 2956 RT_NOREF(version); 2957 2956 2958 uint32_t texture; 2957 2959 int rc = SSMR3GetU32(pSSM, &texture); … … 2973 2975 2974 2976 Assert(hEntry); 2975 2976 const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pEntry = CrFbEntryGetCompositorEntry(hEntry);2977 CR_TEXDATA *pTexData = CrVrScrCompositorEntryTexGet(pEntry);2978 CR_FBTEX *pFbTex = PCR_FBTEX_FROM_TEX(pTexData);2979 2977 2980 2978 RTPOINT Point; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server.h
r78190 r78263 118 118 GLint crServerMuralInit(CRMuralInfo *mural, GLboolean fGuestWindow, GLint visBits, GLint preloadWinID); 119 119 void crServerMuralTerm(CRMuralInfo *mural); 120 GLboolean crServerMuralSize(CRMuralInfo *mural, GL int width, GLint height);120 GLboolean crServerMuralSize(CRMuralInfo *mural, GLuint width, GLuint height); 121 121 void crServerMuralPosition(CRMuralInfo *mural, GLint x, GLint y); 122 122 void crServerMuralVisibleRegion( CRMuralInfo *mural, GLint cRects, const GLint *pRects ); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_boundsinfo.cpp
r78190 r78263 24 24 GLint len, GLint num_opcodes ) 25 25 { 26 26 RT_NOREF(bounds, payload, len, num_opcodes); 27 27 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_bufferobject.cpp
r78190 r78263 15 15 crServerDispatchMapBufferARB( GLenum target, GLenum access ) 16 16 { 17 RT_NOREF(target, access); 17 18 return NULL; 18 19 } … … 21 22 crServerDispatchUnmapBufferARB( GLenum target ) 22 23 { 24 RT_NOREF(target); 23 25 return GL_FALSE; 24 26 } … … 75 77 void *b; 76 78 79 RT_NOREF(data); 80 77 81 if (size <= 0 || size >= INT32_MAX / 2) 78 82 { -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_clear.cpp
r78190 r78263 162 162 void SERVER_DISPATCH_APIENTRY crServerDispatchClear( GLenum mask ) 163 163 { 164 CRMuralInfo *mural = cr_server.curClient->currentMural;165 const RunQueue *q = cr_server.run_queue;166 167 164 if (cr_server.only_swap_once) 168 165 { -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.cpp
r78190 r78263 181 181 CRContext *ctx = (CRContext *) data2; 182 182 183 RT_NOREF(key); 183 184 CR_STATE_SHAREDOBJ_USAGE_CLEAR(mural, ctx); 184 185 } … … 390 391 if (mural && mural->fRedirected && crServerSupportRedirMuralFBO()) 391 392 { 392 GL uint id = crServerMuralFBOIdxFromBufferName(mural, ctx->buffer.drawBuffer);393 GLint id = crServerMuralFBOIdxFromBufferName(mural, ctx->buffer.drawBuffer); 393 394 if (id != mural->iCurDrawBuffer) 394 395 { … … 437 438 CRMuralInfo *mural; 438 439 CRContextInfo *ctxInfo = NULL; 440 441 RT_NOREF(nativeWindow); 439 442 440 443 if (context >= 0 && window >= 0) { -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getpointer.cpp
r78190 r78263 20 20 { 21 21 crError( "glGetVertexAttribPointervNV isn't *ever* allowed to be on the wire!" ); 22 (void) pname; 23 (void) pointer; 22 RT_NOREF(index, pname, pointer); 24 23 } 25 24 … … 27 26 { 28 27 crError( "glGetVertexAttribPointervNV isn't *ever* allowed to be on the wire!" ); 29 (void) pname; 30 (void) pointer; 28 RT_NOREF(index, pname, pointer); 31 29 } 32 30 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.cpp
r78190 r78263 37 37 void SERVER_DISPATCH_APIENTRY crServerDispatchGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, char *name) 38 38 { 39 RT_NOREF(name, type, size, length); 40 39 41 crGetActive_t *pLocal = NULL; 40 42 … … 57 59 void SERVER_DISPATCH_APIENTRY crServerDispatchGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, char *name) 58 60 { 61 RT_NOREF(name, type, size, length); 62 59 63 crGetActive_t *pLocal = NULL; 60 64 … … 77 81 void SERVER_DISPATCH_APIENTRY crServerDispatchGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders) 78 82 { 83 RT_NOREF(count, shaders); 84 79 85 GLsizei *pLocal = NULL; 80 86 … … 106 112 void SERVER_DISPATCH_APIENTRY crServerDispatchGetAttachedObjectsARB(VBoxGLhandleARB containerObj, GLsizei maxCount, GLsizei * count, VBoxGLhandleARB * obj) 107 113 { 114 RT_NOREF(count, obj); 115 108 116 GLsizei *pLocal = NULL; 109 117 … … 137 145 void SERVER_DISPATCH_APIENTRY crServerDispatchGetInfoLogARB(VBoxGLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog) 138 146 { 147 RT_NOREF(length, infoLog); 148 139 149 GLsizei *pLocal = NULL; 140 150 GLuint hwid; … … 162 172 void SERVER_DISPATCH_APIENTRY crServerDispatchGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, char *infoLog) 163 173 { 174 RT_NOREF(length, infoLog); 175 164 176 GLsizei *pLocal = NULL; 165 177 … … 182 194 void SERVER_DISPATCH_APIENTRY crServerDispatchGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, char *infoLog) 183 195 { 196 RT_NOREF(length, infoLog); 197 184 198 GLsizei *pLocal = NULL; 185 199 … … 203 217 void SERVER_DISPATCH_APIENTRY crServerDispatchGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, char *source) 204 218 { 219 RT_NOREF(length, source); 220 205 221 GLsizei *pLocal = NULL; 206 222 … … 287 303 void SERVER_DISPATCH_APIENTRY crServerDispatchGetUniformfv(GLuint program, GLint location, GLfloat *params) 288 304 { 305 RT_NOREF(params); 306 289 307 int size = __GetUniformSize(program, location) * sizeof(GLfloat); 290 308 GLfloat *pLocal; … … 306 324 void SERVER_DISPATCH_APIENTRY crServerDispatchGetUniformiv(GLuint program, GLint location, GLint *params) 307 325 { 326 RT_NOREF(params); 327 308 328 int size = __GetUniformSize(program, location) * sizeof(GLint); 309 329 GLint *pLocal; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.cpp
r78191 r78263 647 647 extern DECLEXPORT(int32_t) crVBoxServerClientGetCapsLegacy(uint32_t u32ClientID, uint32_t *pu32Caps) 648 648 { 649 RT_NOREF(u32ClientID); 650 649 651 uint32_t u32Caps = cr_server.u32Caps; 650 652 u32Caps &= ~CR_VBOX_CAP_CMDVBVA; … … 655 657 extern DECLEXPORT(int32_t) crVBoxServerClientGetCapsNew(uint32_t u32ClientID, CR_CAPS_INFO *pInfo) 656 658 { 659 RT_NOREF(u32ClientID); 660 657 661 pInfo->u32Caps = cr_server.u32Caps; 658 662 pInfo->u32CmdVbvaVersion = CR_CMDVBVA_VERSION; … … 790 794 static void crVBoxServerSyncTextureCB(unsigned long key, void *data1, void *data2) 791 795 { 796 RT_NOREF(key); 797 792 798 CRTextureObj *pTexture = (CRTextureObj *) data1; 793 799 CRContext *pContext = (CRContext *) data2; … … 892 898 static void crVBoxServerBuildContextUsedWindowMapCB(unsigned long key, void *data1, void *data2) 893 899 { 900 RT_NOREF(key); 901 894 902 CRContextInfo *pContextInfo = (CRContextInfo *)data1; 895 903 PCRVBOX_CTXWND_CTXWALKER_CB pData = (PCRVBOX_CTXWND_CTXWALKER_CB)data2; … … 930 938 static void crVBoxServerBuildContextUnusedWindowMapCB(unsigned long key, void *data1, void *data2) 931 939 { 940 RT_NOREF(key); 941 932 942 CRContextInfo *pContextInfo = (CRContextInfo *)data1; 933 943 PCRVBOX_CTXWND_CTXWALKER_CB pData = (PCRVBOX_CTXWND_CTXWALKER_CB)data2; … … 2198 2208 CRClient *pClient = cr_server.clients[i]; 2199 2209 CRClient client; 2200 unsigned long ctxID =-1, winID=-1;2210 unsigned long ctxID = (unsigned long)-1, winID = (unsigned long)-1; 2201 2211 2202 2212 rc = crServerLsrDataGetU32(&Reader, &ui); … … 2331 2341 static void crVBoxServerReparentMuralCB(unsigned long key, void *data1, void *data2) 2332 2342 { 2343 RT_NOREF(key); 2344 2333 2345 CRMuralInfo *pMI = (CRMuralInfo*) data1; 2334 2346 int *sIndex = (int*) data2; … … 2706 2718 if (cParams == 1) 2707 2719 { 2708 CRVBOXHGSMIWRITE* pFnCmd = (CRVBOXHGSMIWRITE*)pHdr;2709 2720 const VBOXCMDVBVA_CRCMD_BUFFER *pBuf = &pCmd->aBuffers[1]; 2710 2721 /* Fetch parameters. */ … … 2712 2723 uint8_t *pBuffer = VBOXCRHGSMI_PTR_SAFE(pBuf->offBuffer, cbBuffer, uint8_t); 2713 2724 2714 if (cbHdr < sizeof ( *pFnCmd))2725 if (cbHdr < sizeof (CRVBOXHGSMIWRITE)) 2715 2726 { 2716 2727 WARN(("invalid write cmd buffer size!")); … … 2957 2968 static DECLCALLBACK(int) crVBoxCrCmdEnable(HVBOXCRCMDSVR hSvr, VBOXCRCMD_SVRENABLE_INFO *pInfo) 2958 2969 { 2970 RT_NOREF(hSvr); 2959 2971 Assert(!cr_server.fCrCmdEnabled); 2960 2972 Assert(!cr_server.numClients); … … 2973 2985 static DECLCALLBACK(int) crVBoxCrCmdDisable(HVBOXCRCMDSVR hSvr) 2974 2986 { 2987 RT_NOREF(hSvr); 2975 2988 Assert(cr_server.fCrCmdEnabled); 2976 2989 … … 2992 3005 static DECLCALLBACK(int) crVBoxCrCmdHostCtl(HVBOXCRCMDSVR hSvr, uint8_t* pCmd, uint32_t cbCmd) 2993 3006 { 3007 RT_NOREF(hSvr); 2994 3008 return crVBoxServerHostCtl((VBOXCRCMDCTL*)pCmd, cbCmd); 2995 3009 } … … 3075 3089 * Toplevel input validation. 3076 3090 */ 3091 RT_NOREF(hSvr); 3077 3092 ASSERT_GUEST_LOGREL_RETURN(cbCmd >= sizeof(VBOXCMDVBVA_3DCTL), VERR_INVALID_PARAMETER); 3078 3093 { … … 3120 3135 static DECLCALLBACK(int) crVBoxCrCmdResize(HVBOXCRCMDSVR hSvr, const struct VBVAINFOSCREEN *pScreen, const uint32_t *pTargetMap) 3121 3136 { 3137 RT_NOREF(hSvr); 3122 3138 CRASSERT(cr_server.fCrCmdEnabled); 3123 3139 return CrPMgrResize(pScreen, NULL, pTargetMap); … … 3152 3168 static int crVBoxCrCmdLoadClients(PSSMHANDLE pSSM, uint32_t u32Version) 3153 3169 { 3170 RT_NOREF(u32Version); 3171 3154 3172 uint32_t i; 3155 3173 uint32_t u32; … … 3182 3200 static DECLCALLBACK(int) crVBoxCrCmdSaveState(HVBOXCRCMDSVR hSvr, PSSMHANDLE pSSM) 3183 3201 { 3202 RT_NOREF(hSvr); 3203 3184 3204 int rc = VINF_SUCCESS; 3185 3205 … … 3233 3253 static DECLCALLBACK(int) crVBoxCrCmdLoadState(HVBOXCRCMDSVR hSvr, PSSMHANDLE pSSM, uint32_t u32Version) 3234 3254 { 3255 RT_NOREF(hSvr); 3256 3235 3257 int rc = VINF_SUCCESS; 3236 3258 … … 3298 3320 const VBOXCMDVBVA_HDR RT_UNTRUSTED_VOLATILE_GUEST *pCmd, uint32_t cbCmd) 3299 3321 { 3322 RT_NOREF(hSvr); 3323 3300 3324 uint8_t bOpcode = pCmd->u8OpCode; 3301 3325 RT_UNTRUSTED_NONVOLATILE_COPY_FENCE(); … … 3359 3383 int32_t crVBoxServerCrHgsmiCmd(struct VBOXVDMACMD_CHROMIUM_CMD *pCmd, uint32_t cbCmd) 3360 3384 { 3385 RT_NOREF(cbCmd); 3361 3386 3362 3387 int32_t rc; … … 3417 3442 if (cParams == 1) 3418 3443 { 3419 CRVBOXHGSMIWRITE* pFnCmd = (CRVBOXHGSMIWRITE*)pHdr;3420 3444 VBOXVDMACMD_CHROMIUM_BUFFER *pBuf = &pCmd->aBuffers[1]; 3421 3445 /* Fetch parameters. */ … … 3423 3447 uint8_t *pBuffer = VBOXCRHGSMI_PTR_SAFE(pBuf->offBuffer, cbBuffer, uint8_t); 3424 3448 3425 if (cbHdr < sizeof ( *pFnCmd))3449 if (cbHdr < sizeof (CRVBOXHGSMIWRITE)) 3426 3450 { 3427 3451 crWarning("invalid write cmd buffer size!"); … … 3696 3720 int32_t crVBoxServerCrHgsmiCtl(struct VBOXVDMACMD_CHROMIUM_CTL *pCtl, uint32_t cbCtl) 3697 3721 { 3722 RT_NOREF(cbCtl); 3723 3698 3724 int rc = VINF_SUCCESS; 3699 3725 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.cpp
r78190 r78263 24 24 void SERVER_DISPATCH_APIENTRY crServerDispatchGetChromiumParametervCR(GLenum target, GLuint index, GLenum type, GLsizei count, GLvoid *values) 25 25 { 26 RT_NOREF(values); 27 26 28 GLubyte local_storage[4096]; 27 29 GLint bytes = 0; … … 109 111 void SERVER_DISPATCH_APIENTRY crServerDispatchChromiumParametervCR(GLenum target, GLenum type, GLsizei count, const GLvoid *values) 110 112 { 111 CRMuralInfo *mural = cr_server.curClient->currentMural;112 113 static int gather_connect_count = 0; 113 114 … … 1974 1975 gl->GetProgramivARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_BINDING_ARB, &pid); 1975 1976 1976 if ( pid != ctx->program.currentVertexProgram->id)1977 if ((GLuint)pid != ctx->program.currentVertexProgram->id) 1977 1978 { 1978 1979 crWarning("pid(%d) != ctx->program.currentVertexProgram->id(%d)", pid, ctx->program.currentVertexProgram->id); 1979 1980 } 1980 AssertRelease( pid == ctx->program.currentVertexProgram->id);1981 AssertRelease((GLuint)pid == ctx->program.currentVertexProgram->id); 1981 1982 } 1982 1983 else … … 1985 1986 1986 1987 gl->GetIntegerv(GL_VERTEX_PROGRAM_BINDING_NV, &pid); 1987 if ( pid != ctx->program.currentVertexProgram->id)1988 if ((GLuint)pid != ctx->program.currentVertexProgram->id) 1988 1989 { 1989 1990 crWarning("pid(%d) != ctx->program.currentVertexProgram->id(%d)", pid, ctx->program.currentVertexProgram->id); 1990 1991 } 1991 AssertRelease( pid == ctx->program.currentVertexProgram->id);1992 AssertRelease((GLuint)pid == ctx->program.currentVertexProgram->id); 1992 1993 } 1993 1994 } … … 1998 1999 gl->GetIntegerv(GL_CURRENT_PROGRAM, &pid); 1999 2000 //crDebug("pid %i, state: id %i, hwid %i", pid, ctx->glsl.activeProgram->id, ctx->glsl.activeProgram->hwid); 2000 if ( pid != ctx->glsl.activeProgram->hwid)2001 if ((GLuint)pid != ctx->glsl.activeProgram->hwid) 2001 2002 { 2002 2003 crWarning("pid(%d) != ctx->glsl.activeProgram->hwid(%d)", pid, ctx->glsl.activeProgram->hwid); 2003 2004 } 2004 AssertRelease( pid == ctx->glsl.activeProgram->hwid);2005 AssertRelease((GLuint)pid == ctx->glsl.activeProgram->hwid); 2005 2006 } 2006 2007 #endif -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.cpp
r76553 r78263 51 51 static void crServerCheckMuralGeometryCB(unsigned long key, void *data1, void *data2) 52 52 { 53 RT_NOREF(key); 54 53 55 CRMuralInfo *pMI = (CRMuralInfo*) data1; 54 56 … … 314 316 static void crVBoxServerMuralFbCleanCB(unsigned long key, void *data1, void *data2) 315 317 { 318 RT_NOREF(key); 319 316 320 CRMuralInfo *pMI = (CRMuralInfo*) data1; 317 321 HCR_FRAMEBUFFER hFb = (HCR_FRAMEBUFFER)data2; … … 330 334 static void crVBoxServerMuralFbSetCB(unsigned long key, void *data1, void *data2) 331 335 { 336 RT_NOREF(key); 337 332 338 CRMuralInfo *pMI = (CRMuralInfo*) data1; 333 339 HCR_FRAMEBUFFER hFb = (HCR_FRAMEBUFFER)data2; … … 657 663 DECLEXPORT(void) crServerVBoxCompositionSetEnableStateGlobal(GLboolean fEnable) 658 664 { 665 RT_NOREF(fEnable); 659 666 } 660 667 … … 819 826 { 820 827 CRContext *ctx = crStateGetCurrent(); 821 GL uint iOldCurDrawBuffer = mural->iCurDrawBuffer;822 GL uint iOldCurReadBuffer = mural->iCurReadBuffer;828 GLint iOldCurDrawBuffer = mural->iCurDrawBuffer; 829 GLint iOldCurReadBuffer = mural->iCurReadBuffer; 823 830 mural->iBbBuffer = ((mural->iBbBuffer + 1) % (mural->cBuffers)); 824 831 if (mural->iCurDrawBuffer >= 0) -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_projmatrix.cpp
r78190 r78263 43 43 { 44 44 const GLenum matMode = cr_server.curClient->currentCtxInfo->pContext->transform.matrixMode; 45 const CRMuralInfo *mural = cr_server.curClient->currentMural;46 45 47 46 crStateLoadMatrixf( m ); … … 60 59 { 61 60 const GLenum matMode = cr_server.curClient->currentCtxInfo->pContext->transform.matrixMode; 62 const CRMuralInfo *mural = cr_server.curClient->currentMural;63 61 64 62 crStateLoadMatrixd( m ); … … 112 110 { 113 111 const GLenum matMode = cr_server.curClient->currentCtxInfo->pContext->transform.matrixMode; 114 const CRMuralInfo *mural = cr_server.curClient->currentMural;115 112 116 113 crStateLoadIdentity(); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_rpw.cpp
r76553 r78263 122 122 static DECLCALLBACK(int) crServerRpwWorkerThread(RTTHREAD ThreadSelf, void *pvUser) 123 123 { 124 RT_NOREF(ThreadSelf); 125 124 126 CR_SERVER_RPW *pWorker = (CR_SERVER_RPW *)pvUser; 125 127 RTMSINTERVAL cWaitMillis = RT_INDEFINITE_WAIT; … … 273 275 static int crServerRpwCtlNotify(CR_SERVER_RPW *pWorker, CR_SERVER_RPW_ENTRY *pEntry) 274 276 { 277 RT_NOREF(pEntry); 278 275 279 int rc = RTSemEventSignal(pWorker->hSubmitEvent); 276 280 if (RT_SUCCESS(rc)) … … 440 444 int crServerRpwEntryResizeCleaned(CR_SERVER_RPW *pWorker, CR_SERVER_RPW_ENTRY *pEntry, uint32_t width, uint32_t height) 441 445 { 446 RT_NOREF(pWorker); 447 442 448 CRContext *pContext; 443 449 if (!width || !height) -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_stream.cpp
r78190 r78263 930 930 crServerRecv( CRConnection *conn, CRMessage *msg, unsigned int len ) 931 931 { 932 RT_NOREF(conn); 933 932 934 CRMessage *pRealMsg; 933 935 (void) len; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_viewport.cpp
r78190 r78263 183 183 } 184 184 mural->viewportValidated = GL_TRUE; 185 #else 186 RT_NOREF(v, mural); 185 187 #endif 186 188 } … … 221 223 crServerApplyBaseProjection(&(extent->baseProjection)); 222 224 cr_server.currentSerialNo = extent->serialNo; 223 } 225 } 226 #else 227 RT_NOREF(mural, extNum); 224 228 #endif 225 229 } … … 272 276 void SERVER_DISPATCH_APIENTRY crServerDispatchViewport( GLint x, GLint y, GLsizei width, GLsizei height ) 273 277 { 274 CRMuralInfo *mural = cr_server.curClient->currentMural;275 278 CRContext *ctx = crStateGetCurrent(); 276 279 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.cpp
r78190 r78263 20 20 GLint crServerMuralInit(CRMuralInfo *mural, GLboolean fGuestWindow, GLint visBits, GLint preloadWinID) 21 21 { 22 RT_NOREF(fGuestWindow); 23 22 24 CRMuralInfo *defaultMural; 23 25 GLint dims[2]; … … 237 239 static void crServerCleanupCtxMuralRefsCB(unsigned long key, void *data1, void *data2) 238 240 { 241 RT_NOREF(key); 242 239 243 CRContextInfo *ctxInfo = (CRContextInfo *) data1; 240 244 CRMuralInfo *mural = (CRMuralInfo *) data2; … … 336 340 } 337 341 338 GLboolean crServerMuralSize(CRMuralInfo *mural, GL int width, GLint height)342 GLboolean crServerMuralSize(CRMuralInfo *mural, GLuint width, GLuint height) 339 343 { 340 344 if (mural->width == width && mural->height == height) -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r78190 r78263 243 243 } 244 244 245 ContextInfo * renderspuDefaultSharedContextAcquire( )245 ContextInfo * renderspuDefaultSharedContextAcquire(void) 246 246 { 247 247 ContextInfo * pCtx = render_spu.defaultSharedContext; … … 651 651 WindowInfo *window; 652 652 653 RT_NOREF(dpyName); 654 653 655 if (id <= 0) 654 656 { … … 731 733 window = (WindowInfo *) crHashtableSearch(render_spu.windowTable, win); 732 734 if (window) { 733 if ( w != window->BltInfo.width734 ||h != window->BltInfo.height)735 if ( (GLuint)w != window->BltInfo.width 736 || (GLuint)h != window->BltInfo.height) 735 737 { 736 738 /* window is resized, compositor data is no longer valid … … 1063 1065 { 1064 1066 PCR_BLITTER pBlitter = renderspuVBoxPresentBlitterGetAndEnter(window, i32MakeCurrentUserData, fRedraw); 1067 1068 RT_NOREF(pChangedEntry); 1065 1069 if (!pBlitter) 1066 1070 return; … … 1111 1115 { 1112 1116 WindowInfo *window = (WindowInfo *) data1; 1117 RT_NOREF(key, data2); 1118 1113 1119 renderspuVBoxCompositorSet(window, NULL); 1114 1120 } 1115 1121 1116 void renderspuVBoxCompositorClearAll( )1122 void renderspuVBoxCompositorClearAll(void) 1117 1123 { 1118 1124 /* we need to clear window compositor, which is not that trivial though, … … 1506 1512 } 1507 1513 1508 bool renderspuCalloutAvailable( )1514 bool renderspuCalloutAvailable(void) 1509 1515 { 1510 1516 return render_spu.pfnClientCallout != NULL; … … 1854 1860 { 1855 1861 WindowInfo *pWindow = (WindowInfo *)data1; 1862 RT_NOREF(key, data2); 1856 1863 1857 1864 renderspu_SystemReparentWindow(pWindow); -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h
r78251 r78263 339 339 extern void renderspu_SystemWindowVisibleRegion(WindowInfo *window, GLint cRects, const GLint* pRects); 340 340 extern GLboolean renderspu_SystemWindowNeedEmptyPresent(WindowInfo *window); 341 extern int renderspu_SystemInit( );342 extern int renderspu_SystemTerm( );341 extern int renderspu_SystemInit(void); 342 extern int renderspu_SystemTerm(void); 343 343 extern void renderspu_SystemDefaultSharedContextChanged(ContextInfo *fromContext, ContextInfo *toContext); 344 344 extern void renderspu_SystemShowWindow( WindowInfo *window, GLboolean showIt ); … … 351 351 extern int renderspuCreateFunctions( SPUNamedFunctionTable table[] ); 352 352 extern GLboolean renderspuVBoxCompositorSet( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor); 353 extern void renderspuVBoxCompositorClearAll( );353 extern void renderspuVBoxCompositorClearAll(void); 354 354 extern int renderspuVBoxCompositorLock(WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR **ppCompositor); 355 355 extern int renderspuVBoxCompositorUnlock(WindowInfo *window); … … 408 408 extern uint32_t renderspuContextMarkDeletedAndRelease( ContextInfo *context ); 409 409 410 int renderspuDefaultCtxInit( );410 int renderspuDefaultCtxInit(void); 411 411 void renderspuCleanupBase(bool fDeleteTables); 412 412 413 ContextInfo * renderspuDefaultSharedContextAcquire( );413 ContextInfo * renderspuDefaultSharedContextAcquire(void); 414 414 void renderspuDefaultSharedContextRelease(ContextInfo * pCtx); 415 415 uint32_t renderspuContextRelease(ContextInfo *context); 416 416 uint32_t renderspuContextRetain(ContextInfo *context); 417 417 418 bool renderspuCalloutAvailable( );418 bool renderspuCalloutAvailable(void); 419 419 bool renderspuCalloutClient(PFNVCRSERVER_CLIENT_CALLOUT_CB pfnCb, void *pvCb); 420 420 -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c
r78251 r78263 100 100 #endif 101 101 102 int renderspuDefaultCtxInit( )102 int renderspuDefaultCtxInit(void) 103 103 { 104 104 GLint defaultWin, defaultCtx; … … 367 367 CRASSERT(window); 368 368 369 RT_NOREF(key, data2); 370 369 371 renderspuVBoxPresentBlitterCleanup( window ); 370 372 } -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c
r78190 r78263 99 99 } 100 100 101 int renderspuIatPatcherPatchEntry(void *pvEntry, void *pvValue, void **ppvOldVal)102 { 103 void **ppfn = (void**)pvEntry;101 int renderspuIatPatcherPatchEntry(void *pvEntry, PFNRT pfnValue, PFNRT *ppfnOldVal) 102 { 103 PFNRT *ppfn = (PFNRT *)pvEntry; 104 104 DWORD dwOldProtect = 0; 105 105 … … 110 110 } 111 111 112 if (pp vOldVal)113 *pp vOldVal = *ppfn;114 *ppfn = p vValue;112 if (ppfnOldVal) 113 *ppfnOldVal = *ppfn; 114 *ppfn = pfnValue; 115 115 116 116 if (!VirtualProtect(pvEntry, sizeof (pvEntry), dwOldProtect, &dwOldProtect)) … … 123 123 124 124 125 int renderspuIatPatcherPatchFunction(HMODULE hModule, LPCSTR pszLib, LPCSTR pszName, void*pfn)125 int renderspuIatPatcherPatchFunction(HMODULE hModule, LPCSTR pszLib, LPCSTR pszName, PFNRT pfn) 126 126 { 127 127 void* pAdr; … … 144 144 145 145 /* patch */ 146 static HWND __stdcall renderspuAtiQuirk_GetForegroundWindow( )146 static HWND __stdcall renderspuAtiQuirk_GetForegroundWindow(void) 147 147 { 148 148 crDebug("renderspuAtiQuirk_GetForegroundWindow"); … … 279 279 } 280 280 281 rc = renderspuIatPatcherPatchFunction(hAtiDll, "user32.dll", "GetForegroundWindow", ( void*)renderspuAtiQuirk_GetForegroundWindow);281 rc = renderspuIatPatcherPatchFunction(hAtiDll, "user32.dll", "GetForegroundWindow", (PFNRT)renderspuAtiQuirk_GetForegroundWindow); 282 282 if (RT_FAILURE(rc)) 283 283 { … … 311 311 312 312 313 static int renderspuAtiQuirk_Apply( )313 static int renderspuAtiQuirk_Apply(void) 314 314 { 315 315 char aBuf[4096]; … … 337 337 } 338 338 339 static GLboolean renderspuAtiQuirk_Needed( )340 { 341 const char * pszString = render_spu.ws.glGetString(GL_VENDOR);339 static GLboolean renderspuAtiQuirk_Needed(void) 340 { 341 const char * pszString = (const char *)render_spu.ws.glGetString(GL_VENDOR); 342 342 if (pszString && strstr(pszString, "ATI")) 343 343 return GL_TRUE; 344 pszString = render_spu.ws.glGetString(GL_RENDERER);344 pszString = (const char *)render_spu.ws.glGetString(GL_RENDERER); 345 345 if (pszString && strstr(pszString, "ATI")) 346 346 return GL_TRUE; … … 348 348 } 349 349 350 static void renderspuAtiQuirk_ChkApply( )350 static void renderspuAtiQuirk_ChkApply(void) 351 351 { 352 352 static GLboolean fChecked = GL_FALSE; … … 506 506 int attribList[100]; 507 507 float fattribList[] = { 0.0, 0.0 }; 508 intnumFormats;508 unsigned numFormats; 509 509 int i = 0; 510 510 BOOL vis; … … 1400 1400 } 1401 1401 1402 #if 0 1402 1403 if (0/*render_spu.render_to_app_window && nativeWindow*/) 1403 1404 { … … 1439 1440 } 1440 1441 else 1442 #endif 1441 1443 { 1442 1444 if (!context->hRC) { … … 1583 1585 GLboolean renderspu_SystemWindowNeedEmptyPresent(WindowInfo *window) 1584 1586 { 1587 RT_NOREF(window); 1585 1588 return GL_FALSE; 1586 1589 } … … 1642 1645 { 1643 1646 int return_value; 1647 1648 RT_NOREF(flags); 1644 1649 1645 1650 /* peek at the windows message queue */ … … 1721 1726 } 1722 1727 1723 int renderspu_SystemInit( )1728 int renderspu_SystemInit(void) 1724 1729 { 1725 1730 return VINF_SUCCESS; 1726 1731 } 1727 1732 1728 int renderspu_SystemTerm( )1733 int renderspu_SystemTerm(void) 1729 1734 { 1730 1735 return VINF_SUCCESS; … … 1733 1738 void renderspu_SystemDefaultSharedContextChanged(ContextInfo *fromContext, ContextInfo *toContext) 1734 1739 { 1735 1740 RT_NOREF(fromContext, toContext); 1736 1741 } 1737 1742 1738 1743 uint32_t renderspu_SystemPostprocessFunctions(SPUNamedFunctionTable *aFunctions, uint32_t cFunctions, uint32_t cTable) 1739 1744 { 1745 RT_NOREF(aFunctions, cTable); 1740 1746 return cFunctions; 1741 1747 } -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_program.cpp
r78190 r78263 294 294 void crUnpackExtendGetProgramStringARB(PCrUnpackerState pState) 295 295 { 296 RT_NOREF(pState); 296 297 } 297 298
Note:
See TracChangeset
for help on using the changeset viewer.

