Changeset 44040 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video
- Timestamp:
- Dec 5, 2012 1:56:15 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82496
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Files:
-
- 3 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
Note:
See TracChangeset
for help on using the changeset viewer.