VirtualBox

Changeset 26141 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 2, 2010 11:35:52 AM (15 years ago)
Author:
vboxsync
Message:

wddm: clean driver query callbacks a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r26138 r26141  
    316316    PAGED_CODE();
    317317
     318    PDEVICE_EXTENSION pDevExt = (PDEVICE_EXTENSION)MiniportDeviceContext;
     319
    318320    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)
    320322    {
    321323        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*/
    324326        ChildRelations[i].ChildCapabilities.Type.VideoOutput.SupportsSdtvModes = FALSE;
    325         ChildRelations[i].ChildCapabilities.HpdAwareness = HpdAwarenessAlwaysConnected;
    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 */
    328330    }
    329331    dfprintf(("<== "__FUNCTION__ ", context(0x%x)\n", MiniportDeviceContext));
     
    468470            DXGK_DRIVERCAPS *pCaps = (DXGK_DRIVERCAPS*)pQueryAdapterInfo->pOutputData;
    469471
    470             pCaps->HighestAcceptableAddress.HighPart = 0xffffffffUL;
     472            pCaps->HighestAcceptableAddress.HighPart = 0x0;
    471473            pCaps->HighestAcceptableAddress.LowPart = 0xffffffffUL;
    472             pCaps->MaxAllocationListSlotId = 0xffffffffUL;
     474            pCaps->MaxAllocationListSlotId = 16;
    473475            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 */
    477479            pCaps->InterruptMessageNumber = 0;
    478480            pCaps->NumberOfSwizzlingRanges = 0;
    479481            /* @todo: need to adjust this for proper 2D Accel support */
    480             pCaps->MaxOverlays = 0;
     482            pCaps->MaxOverlays = 0; /* ?? how much should we support? 32 */
    481483            pCaps->GammaRampCaps.Value = 0;
    482484            pCaps->PresentationCaps.Value = 0;
    483485            pCaps->PresentationCaps.NoScreenToScreenBlt = 1;
    484486            pCaps->PresentationCaps.NoOverlapScreenBlt = 1;
    485             pCaps->MaxQueuedFlipOnVSync = 1; /* @todo: need more ?? */
     487            pCaps->MaxQueuedFlipOnVSync = 0; /* do we need it? */
    486488            pCaps->FlipCaps.Value = 0;
    487             pCaps->FlipCaps.FlipOnVSyncWithNoWait = 1;
    488             pCaps->FlipCaps.FlipOnVSyncMmIo = 1; /* @todo: ?? */
     489            /* ? pCaps->FlipCaps.FlipOnVSyncWithNoWait = 1; */
    489490            pCaps->SchedulingCaps.Value = 0;
    490             /* @todo: we might need it for Aero.
    491              * Setting this glag would mean we support DeviceContext, i.e.
     491            /* we might need it for Aero.
     492             * Setting this glag means we support DeviceContext, i.e.
    492493             *  DxgkDdiCreateContext and DxgkDdiDestroyContext
    493              *
    494              *  pCaps->SchedulingCaps.MultiEngineAware = 1;
    495494             */
     495            pCaps->SchedulingCaps.MultiEngineAware = 1;
    496496            pCaps->MemoryManagementCaps.Value = 0;
    497497            /* @todo: this corelates with pCaps->SchedulingCaps.MultiEngineAware */
    498498            pCaps->MemoryManagementCaps.PagingNode = 0;
    499499            /* @todo: this corelates with pCaps->SchedulingCaps.MultiEngineAware */
    500             pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = 0;
     500            pCaps->GpuEngineTopology.NbAsymetricProcessingNodes = 1;
    501501
    502502            break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette