Changeset 44040 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 5, 2012 1:56:15 PM (12 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPVidModes.cpp
r44038 r44040 545 545 546 546 if (!VBoxMPValidateVideoModeParamsGuest(pExt, iDisplay, xres, yres, bpp)) 547 { 548 WARN_NOBP(("GUEST does not like special mode %dx%d:%d for display %d", xres, yres, bpp, iDisplay)); 547 549 return FALSE; 550 } 548 551 549 552 /* Check if host likes this mode */ 550 553 if (!VBoxLikesVideoMode(iDisplay, xres, yres, bpp)) 551 554 { 552 WARN_NOBP((" hostdoes not like special mode %dx%d:%d for display %d", xres, yres, bpp, iDisplay));555 WARN_NOBP(("HOST does not like special mode %dx%d:%d for display %d", xres, yres, bpp, iDisplay)); 553 556 return FALSE; 554 557 } … … 616 619 { 617 620 /*display = RT_ELEMENTS(g_CustomVideoModes) - 1;*/ 621 WARN(("VBoxQueryDisplayRequest returned invalid display number %d", display)); 618 622 return FALSE; 619 623 } … … 621 625 else 622 626 { 627 LOG(("no pending request")); 623 628 return FALSE; 624 629 } … … 1105 1110 return; 1106 1111 } 1112 LOG(("invalidating videomede info for screen %d", VidPnTargetId)); 1107 1113 g_aVBoxVideoModeInfos[VidPnTargetId].cModes = 0; 1108 1114 return; 1109 1115 } 1116 1117 LOG(("invalidating ALL videomede infos")); 1110 1118 1111 1119 for (UINT i = 0; i < RT_ELEMENTS(g_aVBoxVideoModeInfos); ++i) … … 1246 1254 if (VidPnTargetId >= (D3DDDI_VIDEO_PRESENT_TARGET_ID)VBoxCommonFromDeviceExt(pExt)->cDisplays) 1247 1255 { 1256 WARN(("video mode info for invalid screen (%d) requested", VidPnTargetId)); 1248 1257 return NULL; 1249 1258 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVidPn.cpp
r42228 r44040 553 553 pInfo->fMatched = FALSE; 554 554 555 if (!pInfo->fMatched) 556 LOG(("Found non-matching mode (%d X %d)", 557 pMonitorSMI->VideoSignalInfo.ActiveSize.cx, pMonitorSMI->VideoSignalInfo.ActiveSize.cy)); 558 555 559 pMonitorSMSIf->pfnReleaseModeInfo(hMonitorSMS, pMonitorSMI); 556 560 … … 597 601 { 598 602 if (cModes < cResolutions) 603 { 599 604 *pfMatch = FALSE; 605 LOG(("num modes(%d) and resolutions(%d) do not match, treat as not matched..", cModes, cResolutions)); 606 } 600 607 else 601 608 { … … 607 614 Status = vboxVidPnEnumMonitorSourceModes(hMonitorSMS, pMonitorSMSIf, vboxFidPnMatchMonitorModesEnum, &Info); 608 615 if (NT_SUCCESS(Status)) 616 { 609 617 *pfMatch = Info.fMatched; 618 LOG(("modes %smatched", Info.fMatched ? "" : "NOT ")); 619 } 620 else 621 WARN(("vboxVidPnEnumMonitorSourceModes failed, Status 0x%x", Status)); 610 622 } 611 623 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r43972 r44040 462 462 DdiChildStatus.ChildUid = pChildStatus->iChild; 463 463 } 464 LOG(("Reporting DISCONNECT to child %d", DdiChildStatus.ChildUid)); 464 465 DdiChildStatus.HotPlug.Connected = FALSE; 465 466 NTSTATUS Status = pDevExt->u.primary.DxgkInterface.DxgkCbIndicateChildStatus(pDevExt->u.primary.DxgkInterface.DeviceHandle, &DdiChildStatus); … … 488 489 DdiChildStatus.ChildUid = pChildStatus->iChild; 489 490 } 491 LOG(("Reporting CONNECT to child %d", DdiChildStatus.ChildUid)); 490 492 DdiChildStatus.HotPlug.Connected = TRUE; 491 493 NTSTATUS Status = pDevExt->u.primary.DxgkInterface.DxgkCbIndicateChildStatus(pDevExt->u.primary.DxgkInterface.DeviceHandle, &DdiChildStatus); … … 514 516 DdiChildStatus.ChildUid = pChildStatus->iChild; 515 517 } 518 LOG(("Reporting ROTATED to child %d", DdiChildStatus.ChildUid)); 516 519 DdiChildStatus.Rotation.Angle = pChildStatus->u8RotationAngle; 517 520 NTSTATUS Status = pDevExt->u.primary.DxgkInterface.DxgkCbIndicateChildStatus(pDevExt->u.primary.DxgkInterface.DeviceHandle, &DdiChildStatus); … … 665 668 int i; 666 669 670 LOG(("checking child status..")); 671 667 672 for (i = 0; i < VBoxCommonFromDeviceExt(pDevExt)->cDisplays; ++i) 668 673 { 669 674 if (pMask && !ASMBitTest(pMask, i)) 670 675 continue; 676 677 LOG(("requested to change child status for display %d", i)); 671 678 672 679 /* @todo: check that we actually need the current source->target */ … … 695 702 if (bChanged[i]) 696 703 { 704 LOG(("modes changed for display %d", i)); 705 697 706 NTSTATUS tmpStatus = vboxWddmChildStatusReportReconnected(pDevExt, i); 698 707 if (!NT_SUCCESS(tmpStatus)) … … 4186 4195 break; 4187 4196 } 4197 LOG(("=> VBOXESC_REINITVIDEOMODESBYMASK")); 4188 4198 PVBOXDISPIFESCAPE_REINITVIDEOMODESBYMASK pData = (PVBOXDISPIFESCAPE_REINITVIDEOMODESBYMASK)pEscapeHdr; 4189 4199 PVBOXWDDM_VIDEOMODES_INFO pInfos = VBoxWddmUpdateVideoModesInfoByMask(pDevExt, pData->ScreenMask); … … 4196 4206 } 4197 4207 } 4208 LOG(("<= VBOXESC_REINITVIDEOMODESBYMASK")); 4198 4209 break; 4199 4210 } … … 6692 6703 vboxVDbgBreakFv(); 6693 6704 6694 #if def DEBUG_misha6705 #if 0//def DEBUG_misha 6695 6706 RTLogGroupSettings(0, "+default.e.l.f.l2.l3"); 6696 6707 #endif 6697 6708 6698 6709 #ifdef VBOX_WDDM_WIN8 6699 LOGREL(("VBox WDDM Driver for Windows 8 ; Built %s %s", __DATE__, __TIME__));6710 LOGREL(("VBox WDDM Driver for Windows 8, %d bit; Built %s %s", (sizeof (void*) << 3), __DATE__, __TIME__)); 6700 6711 #else 6701 LOGREL(("VBox WDDM Driver for Windows Vista and 7 ; Built %s %s", __DATE__, __TIME__));6712 LOGREL(("VBox WDDM Driver for Windows Vista and 7, %d bit; Built %s %s", (sizeof (void*) << 3), __DATE__, __TIME__)); 6702 6713 #endif 6703 6714 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r42232 r44040 175 175 { 176 176 winEr = GetLastError(); 177 Assert(0);177 Log(("CreateDC failed %d", winEr)); 178 178 break; 179 179 } 180 180 } 181 Log(("display data no match display(%d): i(%d), flags(%d)", iDisplay, i, pDev->StateFlags)); 181 182 } 182 183 else 183 184 { 184 185 winEr = GetLastError(); 185 Assert(0);186 Log(("EnumDisplayDevices failed %d", winEr)); 186 187 break; 187 188 } 188 189 } 189 190 191 Log(("vboxDispIfWDDMAdpHdcCreate failure branch %d", winEr)); 190 192 return winEr; 191 193 } … … 227 229 DeleteDC(OpenAdapterData.hDc); 228 230 } 231 else 232 Log((__FUNCTION__": vboxDispIfWDDMAdpHdcCreate failed, winEr (%d)\n", err)); 229 233 230 234 return err; … … 1047 1051 { 1048 1052 winEr = GetLastError(); 1049 Assert(0);1053 Log(("WARNING: Failed to get dc for display device %s, winEr %d\n", paDisplayDevices[i].DeviceName, winEr)); 1050 1054 break; 1051 1055 } … … 1056 1060 { 1057 1061 winEr = ERROR_GEN_FAILURE; 1058 Assert(0);1062 Log(("WARNING: Failed to open adapter from dc, Status 0x%x\n", Status)); 1059 1063 break; 1060 1064 } … … 1074 1078 ClosaAdapterData.hAdapter = OpenAdapterData.hAdapter; 1075 1079 Status = pIf->modeData.wddm.pfnD3DKMTCloseAdapter(&ClosaAdapterData); 1076 Assert(!Status); 1080 if (Status) 1081 Log(("WARNING: Failed to close adapter, Status 0x%x\n", Status)); 1077 1082 } 1078 1083 } … … 1108 1113 ClosaAdapterData.hAdapter = hAdapter; 1109 1114 Status = pIf->modeData.wddm.pfnD3DKMTCloseAdapter(&ClosaAdapterData); 1110 Assert(!Status); 1115 if (Status) 1116 Log(("WARNING: Failed to close adapter[2], Status 0x%x\n", Status)); 1111 1117 } 1112 1118 … … 1118 1124 if (fAbleToInvalidateVidPn) 1119 1125 { 1126 Log(("Invalidating VidPn Worked!\n")); 1120 1127 winEr = vboxDispIfWddmValidateFixResize(pIf, paDisplayDevices, paDeviceModes, cDevModes); 1121 1128 } 1122 1129 else 1123 1130 { 1131 Log(("Falling back to monitor mode reinit\n")); 1124 1132 /* fallback impl needed for display-only driver 1125 1133 * since D3DKMTInvalidateActiveVidPn is not available for WDDM > 1.0:
Note:
See TracChangeset
for help on using the changeset viewer.