Changeset 26141 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Feb 2, 2010 11:35:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r26138 r26141 316 316 PAGED_CODE(); 317 317 318 PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)MiniportDeviceContext; 319 318 320 dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", MiniportDeviceContext)); 319 for ( ULONG i = 0; i < ChildRelationsSize; ++i)321 for (int i = 0; i < pDevExt->u.primary.cDisplays; ++i) 320 322 { 321 323 ChildRelations[i].ChildDeviceType = TypeVideoOutput; 322 ChildRelations[i].ChildCapabilities.Type.VideoOutput.InterfaceTechnology = D3DKMDT_VOT_ OTHER;323 ChildRelations[i].ChildCapabilities.Type.VideoOutput.MonitorOrientationAwareness = D3DKMDT_MOA_ NONE;324 ChildRelations[i].ChildCapabilities.Type.VideoOutput.InterfaceTechnology = D3DKMDT_VOT_HD15; /* VGA */ 325 ChildRelations[i].ChildCapabilities.Type.VideoOutput.MonitorOrientationAwareness = D3DKMDT_MOA_INTERRUPTIBLE; /* ?? D3DKMDT_MOA_NONE*/ 324 326 ChildRelations[i].ChildCapabilities.Type.VideoOutput.SupportsSdtvModes = FALSE; 325 ChildRelations[i].ChildCapabilities.HpdAwareness = HpdAwareness AlwaysConnected;326 ChildRelations[i].AcpiUid = i; /* @todo: do we need it? could it be zero ?*/327 ChildRelations[i].ChildUid = i; /* could it be zero ?*/327 ChildRelations[i].ChildCapabilities.HpdAwareness = HpdAwarenessInterruptible; /* ?? HpdAwarenessAlwaysConnected; */ 328 ChildRelations[i].AcpiUid = i; /* */ 329 ChildRelations[i].ChildUid = i; /* should be == target id */ 328 330 } 329 331 dfprintf(("<== "__FUNCTION__ ", context(0x%x)\n", MiniportDeviceContext)); … … 468 470 DXGK_DRIVERCAPS *pCaps = (DXGK_DRIVERCAPS*)pQueryAdapterInfo->pOutputData; 469 471 470 pCaps->HighestAcceptableAddress.HighPart = 0x ffffffffUL;472 pCaps->HighestAcceptableAddress.HighPart = 0x0; 471 473 pCaps->HighestAcceptableAddress.LowPart = 0xffffffffUL; 472 pCaps->MaxAllocationListSlotId = 0xffffffffUL;474 pCaps->MaxAllocationListSlotId = 16; 473 475 pCaps->ApertureSegmentCommitLimit = 0; 474 pCaps->MaxPointerWidth = 0xffffffffUL;475 pCaps->MaxPointerHeight = 0xffffffffUL;476 pCaps->PointerCaps.Value = 0x7; /* Monochrome , Color , MaskedColor*/476 pCaps->MaxPointerWidth = 64; 477 pCaps->MaxPointerHeight = 64; 478 pCaps->PointerCaps.Value = 3; /* Monochrome , Color*/ /* MaskedColor == Value | 4, dosable for now */ 477 479 pCaps->InterruptMessageNumber = 0; 478 480 pCaps->NumberOfSwizzlingRanges = 0; 479 481 /* @todo: need to adjust this for proper 2D Accel support */ 480 pCaps->MaxOverlays = 0; 482 pCaps->MaxOverlays = 0; /* ?? how much should we support? 32 */ 481 483 pCaps->GammaRampCaps.Value = 0; 482 484 pCaps->PresentationCaps.Value = 0; 483 485 pCaps->PresentationCaps.NoScreenToScreenBlt = 1; 484 486 pCaps->PresentationCaps.NoOverlapScreenBlt = 1; 485 pCaps->MaxQueuedFlipOnVSync = 1; /* @todo: need more ?? */487 pCaps->MaxQueuedFlipOnVSync = 0; /* do we need it? */ 486 488 pCaps->FlipCaps.Value = 0; 487 pCaps->FlipCaps.FlipOnVSyncWithNoWait = 1; 488 pCaps->FlipCaps.FlipOnVSyncMmIo = 1; /* @todo: ?? */ 489 /* ? pCaps->FlipCaps.FlipOnVSyncWithNoWait = 1; */ 489 490 pCaps->SchedulingCaps.Value = 0; 490 /* @todo:we might need it for Aero.491 * Setting this glag would meanwe support DeviceContext, i.e.491 /* we might need it for Aero. 492 * Setting this glag means we support DeviceContext, i.e. 492 493 * DxgkDdiCreateContext and DxgkDdiDestroyContext 493 *494 * pCaps->SchedulingCaps.MultiEngineAware = 1;495 494 */ 495 pCaps->SchedulingCaps.MultiEngineAware = 1; 496 496 pCaps->MemoryManagementCaps.Value = 0; 497 497 /* @todo: this corelates with pCaps->SchedulingCaps.MultiEngineAware */ 498 498 pCaps->MemoryManagementCaps.PagingNode = 0; 499 499 /* @todo: this corelates with pCaps->SchedulingCaps.MultiEngineAware */ 500 pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = 0;500 pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = 1; 501 501 502 502 break;
Note:
See TracChangeset
for help on using the changeset viewer.