VirtualBox

Ignore:
Timestamp:
Mar 4, 2010 7:06:28 PM (15 years ago)
Author:
vboxsync
Message:

wddm: bugfixes

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
Files:
2 edited

Legend:

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

    r27006 r27055  
    10841084    PDEVICE_EXTENSION pContext = (PDEVICE_EXTENSION)hAdapter;
    10851085
     1086    AssertBreakpoint();
     1087
    10861088    switch (pQueryAdapterInfo->Type)
    10871089    {
     
    11861188    PDEVICE_EXTENSION pContext = (PDEVICE_EXTENSION)hAdapter;
    11871189
     1190    AssertBreakpoint();
     1191
    11881192    PVBOXWDDM_DEVICE pDevice = (PVBOXWDDM_DEVICE)vboxWddmMemAllocZero(sizeof (VBOXWDDM_DEVICE));
    11891193    pCreateDevice->hDevice = pDevice;
     
    11971201
    11981202    pDevice->pAdapter = pContext;
     1203    pDevice->hDevice = pCreateDevice->hDevice;
    11991204
    12001205    pCreateDevice->hDevice = pDevice;
     
    12381243                            pAllocation->enmType = VBOXWDDM_ALLOC_TYPE_STD_SHAREDPRIMARYSURFACE;
    12391244                            pAllocation->u.SurfInfo = pAllocInfo->u.SurfInfo;
    1240                             PVBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE pAlloc = VBOXWDDM_ALLOCATION_BODY(pAllocInfo, VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE);
     1245                            PVBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE pAlloc = VBOXWDDM_ALLOCATION_BODY(pAllocation, VBOXWDDM_ALLOCATION_SHAREDPRIMARYSURFACE);
    12411246                            PVBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE pAllocI = VBOXWDDM_ALLOCINFO_BODY(pAllocInfo, VBOXWDDM_ALLOCINFO_SHAREDPRIMARYSURFACE);
    12421247                            pAlloc->RefreshRate = pAllocI->RefreshRate;
     
    12871292                if (pAllocationInfo->PrivateDriverDataSize >= VBOXWDDM_ALLOCINFO_HEADSIZE())
    12881293                {
    1289                     PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)vboxWddmMemAllocZero(VBOXWDDM_ALLOCINFO_HEADSIZE());
     1294                    PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)vboxWddmMemAllocZero(VBOXWDDM_ALLOCATION_HEADSIZE());
    12901295                    Assert(pAllocation);
    12911296                    if (pAllocation)
     
    13481353    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
    13491354
     1355    AssertBreakpoint();
     1356
    13501357    NTSTATUS Status = STATUS_SUCCESS;
    13511358
     
    13921399}
    13931400
    1394 
     1401/**
     1402 * DxgkDdiDescribeAllocation
     1403 */
    13951404NTSTATUS
    13961405APIENTRY
     
    14021411
    14031412    AssertBreakpoint();
    1404     /* @todo: fixme: implement */
     1413    PVBOXWDDM_ALLOCATION pAllocation = (PVBOXWDDM_ALLOCATION)pDescribeAllocation->hAllocation;
     1414    pDescribeAllocation->Width = pAllocation->u.SurfInfo.width;
     1415    pDescribeAllocation->Height = pAllocation->u.SurfInfo.height;
     1416    pDescribeAllocation->Format = pAllocation->u.SurfInfo.format;
     1417    memset (&pDescribeAllocation->MultisampleMethod, 0, sizeof (pDescribeAllocation->MultisampleMethod));
     1418    pDescribeAllocation->RefreshRate.Numerator = 60000;
     1419    pDescribeAllocation->RefreshRate.Denominator = 1000;
     1420    pDescribeAllocation->PrivateDriverFormatAttribute = 0;
    14051421
    14061422    dfprintf(("<== "__FUNCTION__ ", hAdapter(0x%x)\n", hAdapter));
     
    14221438
    14231439    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
     1440
     1441    AssertBreakpoint();
    14241442
    14251443    NTSTATUS Status = STATUS_SUCCESS;
     
    16601678    PAGED_CODE();
    16611679
     1680    AssertBreakpoint();
     1681
    16621682    NTSTATUS Status = STATUS_SUCCESS;
    16631683
     
    18121832
    18131833    dfprintf(("==> "__FUNCTION__ ", context(0x%x)\n", hAdapter));
     1834
     1835    AssertBreakpoint();
    18141836
    18151837    PDEVICE_EXTENSION pContext = (PDEVICE_EXTENSION)hAdapter;
     
    24782500    dfprintf(("==> "__FUNCTION__ ", hDevice(0x%x)\n", hDevice));
    24792501
     2502    AssertBreakpoint();
     2503
    24802504    NTSTATUS Status = STATUS_SUCCESS;
    24812505
     
    27702794    dfprintf(("==> "__FUNCTION__ ", hDevice(0x%x)\n", hDevice));
    27712795
     2796    AssertBreakpoint();
     2797
    27722798    NTSTATUS Status = STATUS_SUCCESS;
    27732799    PVBOXWDDM_DEVICE pDevice = (PVBOXWDDM_DEVICE)hDevice;
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.h

    r26794 r27055  
    102102{
    103103    struct _DEVICE_EXTENSION * pAdapter; /* Adapder info */
     104    HANDLE hDevice; /* handle passed to CreateDevice */
    104105    VBOXWDDM_DEVICE_TYPE enmType; /* device creation flags passed to DxgkDdiCreateDevice, not sure we need it */
    105106} VBOXWDDM_DEVICE, *PVBOXWDDM_DEVICE;
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