Changeset 51524 in vbox
- Timestamp:
- Jun 4, 2014 8:06:12 AM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r51507 r51524 1622 1622 static int vboxVDMACrCmdVbvaProcessPagingEl(PPDMDEVINS pDevIns, VBOXCMDVBVAPAGEIDX iPage, uint8_t *pu8Vram, bool fIn) 1623 1623 { 1624 RTGCPHYS phPage = (RTGCPHYS) (iPage << PAGE_SHIFT);1624 RTGCPHYS phPage = (RTGCPHYS)iPage << PAGE_SHIFT; 1625 1625 PGMPAGEMAPLOCK Lock; 1626 1626 int rc; … … 1707 1707 } 1708 1708 1709 if (offVRAM + (cPages << PAGE_SHIFT) >= pVGAState->vram_size) 1710 { 1711 WARN(("invalid cPages")); 1709 if (~(~(VBOXCMDVBVAPAGEIDX)0 >> PAGE_SHIFT) & cPages) 1710 { 1711 WARN(("invalid cPages %d", cPages)); 1712 return -1; 1713 } 1714 1715 if (offVRAM + ((VBOXCMDVBVAOFFSET)cPages << PAGE_SHIFT) >= pVGAState->vram_size) 1716 { 1717 WARN(("invalid cPages %d, exceeding vram size", cPages)); 1712 1718 return -1; 1713 1719 } … … 1841 1847 const VBOXCMDVBVA_HDR *pRealCmdHdr; 1842 1848 uint32_t cbRealCmd = pCmd->u8Flags; 1843 cbRealCmd |= ( pCmd->u.u8PrimaryID << 8);1849 cbRealCmd |= (uint32_t)pCmd->u.u8PrimaryID << 8; 1844 1850 if (cbRealCmd < sizeof (VBOXCMDVBVA_HDR)) 1845 1851 { … … 1957 1963 1958 1964 phCmd += PAGE_SIZE; 1959 pu8Vram += ( cCurPages << PAGE_SHIFT);1965 pu8Vram += (VBOXCMDVBVAOFFSET)cCurPages << PAGE_SHIFT; 1960 1966 1961 1967 rc = PDMDevHlpPhysGCPhys2CCPtrReadOnly(pDevIns, phCmd, 0, &pvCmd, &Lock); -
trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp
r51146 r51524 1018 1018 } 1019 1019 1020 crWarning("NOT IMPLEMENTED");1020 WARN(("NOT IMPLEMENTED")); 1021 1021 return VERR_NOT_IMPLEMENTED; 1022 1022 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r51436 r51524 973 973 default: 974 974 { 975 WARN(("svcCall: unexpected u32Function %d", u32Function)); 975 976 rc = VERR_NOT_IMPLEMENTED; 976 977 } … … 1517 1518 } 1518 1519 default: 1520 WARN(("svcHostCallPerform: unexpected u32Function %d", u32Function)); 1519 1521 rc = VERR_NOT_IMPLEMENTED; 1520 1522 break; … … 1592 1594 } 1593 1595 default: 1594 WARN((" invalid function"));1596 WARN(("svcHostCall: invalid function %d", pCtl->enmType)); 1595 1597 return VERR_INVALID_PARAMETER; 1596 1598 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r51356 r51524 2825 2825 { 2826 2826 if (MAPPED(SCREEN(i))) 2827 crWarning("Screen count is changing, but screen[%i] is still mapped", i);2827 WARN(("Screen count is changing, but screen[%i] is still mapped", i)); 2828 2828 return VERR_NOT_IMPLEMENTED; 2829 2829 } … … 3406 3406 case SHCRGL_GUEST_FN_SET_VERSION: 3407 3407 { 3408 crWarning("invalid function");3408 WARN(("SHCRGL_GUEST_FN_SET_VERSION: invalid function")); 3409 3409 rc = VERR_NOT_IMPLEMENTED; 3410 3410 break; … … 3413 3413 case SHCRGL_GUEST_FN_SET_PID: 3414 3414 { 3415 crWarning("invalid function");3415 WARN(("SHCRGL_GUEST_FN_SET_PID: invalid function")); 3416 3416 rc = VERR_NOT_IMPLEMENTED; 3417 3417 break; … … 3420 3420 default: 3421 3421 { 3422 crWarning("invalid function");3422 WARN(("invalid function, %d", u32Function)); 3423 3423 rc = VERR_NOT_IMPLEMENTED; 3424 3424 break; … … 3586 3586 } 3587 3587 default: 3588 WARN((" invalid function"));3588 WARN(("crVBoxCrCmdGuestCtl: invalid function %d", pCtl->u32Type)); 3589 3589 return VERR_INVALID_PARAMETER; 3590 3590 } … … 4161 4161 case SHCRGL_GUEST_FN_SET_VERSION: 4162 4162 { 4163 crWarning("invalid function");4163 WARN(("crVBoxServerCrHgsmiCmd, SHCRGL_GUEST_FN_SET_VERSION: invalid function")); 4164 4164 rc = VERR_NOT_IMPLEMENTED; 4165 4165 break; … … 4168 4168 case SHCRGL_GUEST_FN_SET_PID: 4169 4169 { 4170 crWarning("invalid function");4170 WARN(("crVBoxServerCrHgsmiCmd, SHCRGL_GUEST_FN_SET_PID: invalid function")); 4171 4171 rc = VERR_NOT_IMPLEMENTED; 4172 4172 break; … … 4175 4175 default: 4176 4176 { 4177 crWarning("invalid function");4177 WARN(("crVBoxServerCrHgsmiCmd: invalid functionm %d", u32Function)); 4178 4178 rc = VERR_NOT_IMPLEMENTED; 4179 4179 break; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.c
r51064 r51524 728 728 729 729 if (!mural->fRedirected) 730 { 731 WARN(("mural not redirected!")); 730 732 return VERR_NOT_IMPLEMENTED; 733 } 731 734 732 735 enmBuf = fDraw ? ctx->buffer.drawBuffer : ctx->buffer.readBuffer; … … 744 747 break; 745 748 default: 746 crWarning("unsupported enum buf");749 WARN(("unsupported enum buf %d", enmBuf)); 747 750 return VERR_NOT_IMPLEMENTED; 748 751 break; … … 779 782 if (pAp->level) 780 783 { 781 crWarning("non-zero level not implemented");784 WARN(("non-zero level not implemented")); 782 785 return VERR_NOT_IMPLEMENTED; 783 786 } … … 792 795 if (tobj->target != GL_TEXTURE_2D && tobj->target != GL_TEXTURE_RECTANGLE_NV) 793 796 { 794 crWarning("non-texture[rect|2d] not implemented");797 WARN(("non-texture[rect|2d] not implemented")); 795 798 return VERR_NOT_IMPLEMENTED; 796 799 } … … 823 826 if (mask != GL_COLOR_BUFFER_BIT) 824 827 { 825 crWarning("not supported blit mask %d", mask);828 WARN(("not supported blit mask %d", mask)); 826 829 return VERR_NOT_IMPLEMENTED; 827 830 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r51442 r51524 5654 5654 if (hSrcFb) 5655 5655 { 5656 WARN(("blit from one framebuffer, wow"));5656 LOG(("blit from one framebuffer, wow")); 5657 5657 5658 5658 int rc = CrFbUpdateBegin(hSrcFb);
Note:
See TracChangeset
for help on using the changeset viewer.