Changeset 22920 in vbox
- Timestamp:
- Sep 10, 2009 3:37:08 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxVideo.h
r22592 r22920 585 585 struct 586 586 { 587 uint32_t ErrInfo;587 int32_t ErrInfo; 588 588 } out; 589 589 } u; -
trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c
r22408 r22920 816 816 if(pCmd->rc == VINF_SUCCESS) 817 817 { 818 #ifdef DEBUGVHWASTRICT 818 819 Assert(!pBody->u.out.ErrInfo); 820 #endif 819 821 if(pBody->u.out.ErrInfo) 820 822 { -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp
r22848 r22920 1258 1258 if(pDispContext) 1259 1259 { 1260 #ifdef DEBUGVHWASTRICT 1260 1261 Assert(!pDispContext->bValid); 1262 #endif 1261 1263 Assert(!pDispContext->pFirstCmd); 1262 1264 Assert(!pDispContext->pLastCmd); -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r22751 r22920 374 374 } 375 375 376 #ifdef DEBUG _misha376 #ifdef DEBUGVHWASTRICT 377 377 /* guest usually completes commands in the order it receives it 378 378 * if we're here this would typically means there is some cmd loss */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r22912 r22920 783 783 } 784 784 785 #ifndef DEBUG _misha785 #ifndef DEBUGVHWASTRICT 786 786 /* in case we do not support shaders & multitexturing we can not supprt dst colorkey, 787 787 * no sense to report Video Acceleration supported */ … … 1983 1983 } 1984 1984 1985 #ifdef DEBUG _misha1985 #ifdef DEBUGVHWASTRICT 1986 1986 bool g_DbgTest = false; 1987 1987 #endif … … 1989 1989 void VBoxVHWATexture::doUpdate(uchar * pAddress, const QRect * pRect) 1990 1990 { 1991 #ifdef DEBUG _misha1991 #ifdef DEBUGVHWASTRICT 1992 1992 if(g_DbgTest) 1993 1993 { … … 2037 2037 ); 2038 2038 2039 #ifdef DEBUG _misha2039 #ifdef DEBUGVHWASTRICT 2040 2040 if(g_DbgTest) 2041 2041 { … … 2203 2203 vboxglBindBuffer(GL_PIXEL_UNPACK_BUFFER, mPBO); 2204 2204 2205 GLvoid *buf = vboxglMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY); 2206 2205 GLvoid *buf; 2206 2207 VBOXQGL_CHECKERR( 2208 buf = vboxglMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY); 2209 ); 2210 Assert(buf); 2211 if(buf) 2212 { 2207 2213 // updateBuffer((uchar*)buf, pRect); 2208 memcpy(buf, mAddress, memSize()); 2209 2210 bool unmapped = vboxglUnmapBuffer(GL_PIXEL_UNPACK_BUFFER); 2211 Assert(unmapped); 2212 2213 VBoxVHWATextureNP2Rect::doUpdate(0, &mRect); 2214 2215 vboxglBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); 2214 memcpy(buf, mAddress, memSize()); 2215 2216 bool unmapped; 2217 VBOXQGL_CHECKERR( 2218 unmapped = vboxglUnmapBuffer(GL_PIXEL_UNPACK_BUFFER); 2219 ); 2220 2221 Assert(unmapped); 2222 2223 VBoxVHWATextureNP2Rect::doUpdate(0, &mRect); 2224 2225 vboxglBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); 2226 } 2227 else 2228 { 2229 VBOXQGLLOGREL(("failed to map PBO, trying fallback to non-PBO approach\n")); 2230 /* try fallback to non-PBO approach */ 2231 vboxglBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); 2232 VBoxVHWATextureNP2Rect::doUpdate(pAddress, pRect); 2233 } 2216 2234 } 2217 2235 … … 3177 3195 { 3178 3196 Assert(0); 3179 pCmd->u.out.ErrInfo = 1; 3197 pCmd->u.out.ErrInfo = -1; 3198 return VINF_SUCCESS; 3199 } 3200 3201 if(pCmd->SurfInfo.surfCaps & VBOXVHWA_SCAPS_OFFSCREENPLAIN) 3202 { 3203 #ifdef DEBUGVHWASTRICT 3204 Assert(0); 3205 #endif 3206 pCmd->u.out.ErrInfo = -1; 3180 3207 return VINF_SUCCESS; 3181 3208 } … … 3187 3214 } 3188 3215 3189 if(pCmd->SurfInfo.surfCaps & VBOXVHWA_SCAPS_OFFSCREENPLAIN)3190 {3191 #ifdef DEBUG_misha3192 Assert(0);3193 #endif3194 pCmd->u.out.ErrInfo = 1;3195 return VINF_SUCCESS;3196 }3197 3216 3198 3217 Assert(/*pCmd->SurfInfo.surfCaps & VBOXVHWA_SCAPS_OFFSCREENPLAIN … … 3204 3223 { 3205 3224 Assert(0); 3206 pCmd->u.out.ErrInfo = 1;3225 pCmd->u.out.ErrInfo = -1; 3207 3226 return VINF_SUCCESS; 3208 3227 } … … 3214 3233 { 3215 3234 Assert(0); 3216 pCmd->u.out.ErrInfo = 1;3235 pCmd->u.out.ErrInfo = -1; 3217 3236 return VINF_SUCCESS; 3218 3237 } … … 3234 3253 { 3235 3254 Assert(0); 3236 pCmd->u.out.ErrInfo = 1;3255 pCmd->u.out.ErrInfo = -1; 3237 3256 return VINF_SUCCESS; 3238 3257 } … … 3241 3260 { 3242 3261 Assert(0); 3243 pCmd->u.out.ErrInfo = 1;3262 pCmd->u.out.ErrInfo = -1; 3244 3263 return VINF_SUCCESS; 3245 3264 } … … 3416 3435 // Assert(mbVGASurfCreated); 3417 3436 mDisplay.getVGA()->getComplexList()->add(surf); 3418 #ifdef DEBUG _misha3437 #ifdef DEBUGVHWASTRICT 3419 3438 Assert(pCmd->SurfInfo.surfCaps & VBOXVHWA_SCAPS_VISIBLE); 3420 3439 #endif … … 3766 3785 vboxCheckUpdateAddress (pDstSurf, pCmd->u.in.offDstSurface); 3767 3786 VBOXQGLLOG(("pDstSurf (0x%x)\n",pDstSurf)); 3768 #ifdef DEBUG _misha3787 #ifdef DEBUGVHWASTRICT 3769 3788 Assert(pDstSurf == mDisplay.getVGA()); 3770 3789 Assert(mDisplay.getVGA() == mDisplay.getPrimary()); … … 3822 3841 QPoint pos(pCmd->u.in.xPos, pCmd->u.in.yPos); 3823 3842 3824 #ifdef DEBUG _misha3843 #ifdef DEBUGVHWASTRICT 3825 3844 Assert(pDstSurf == mDisplay.getVGA()); 3826 3845 Assert(mDisplay.getVGA() == mDisplay.getPrimary());
Note:
See TracChangeset
for help on using the changeset viewer.