VirtualBox

Changeset 22412 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Aug 24, 2009 1:02:40 PM (15 years ago)
Author:
vboxsync
Message:

HGSMI/VBVA updates

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/enable.c

    r20653 r22412  
    558558    vDisablePalette((PPDEV) dhpdev);
    559559
    560     /* Free the driver's VBVA resources. */
    561     vboxVbvaDisable ((PPDEV) dhpdev);
    562 
    563560    EngFreeMem(dhpdev);
    564561}
     
    867864    vboxVHWADisable(ppdev);
    868865#endif
     866
     867#ifdef VBOX_WITH_HGSMI
     868    /* Free the driver's VBVA resources. */
     869    vboxVbvaDisable ((PPDEV) dhpdev);
     870#endif
    869871    vDisableSURF(ppdev);
    870872}
     
    959961        vboxVHWADisable(ppdev);
    960962#endif
     963
     964#ifdef VBOX_WITH_HGSMI
     965        /* Free the driver's VBVA resources. */
     966        vboxVbvaDisable ((PPDEV) dhpdev);
     967#endif
     968
    961969        //
    962970        // We must give up the display.
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/pointer.c

    r21227 r22412  
    164164    DWORD   returnedDataLength;
    165165
    166     DISPDBG((0, "DISP bSetHardwarePointerShape SPS_ALPHA = %d\n", fl & SPS_ALPHA));
     166    DISPDBG((0, "DISP[%d] bSetHardwarePointerShape SPS_ALPHA = %d\n", ppdev->iDevice, fl & SPS_ALPHA));
    167167
    168168    // We don't use the exclusion rectangle because we only support
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c

    r22136 r22412  
    245245                                 (uint8_t *)ppdev->pjScreen + ppdev->layout.offDisplayInformation + sizeof (HGSMIHOSTFLAGS),
    246246                                 ppdev->layout.cbDisplayInformation - sizeof (HGSMIHOSTFLAGS),
    247                                  ppdev->layout.offDisplayInformation + sizeof (HGSMIHOSTFLAGS));
     247                                 info.areaDisplay.offBase + ppdev->layout.offDisplayInformation + sizeof (HGSMIHOSTFLAGS));
     248
     249        DISPDBG((0, "VBoxDISP::vboxInitVBoxVideo: offBase 0x%x\n",
     250                 info.areaDisplay.offBase));
    248251
    249252        if (RT_FAILURE (rc))
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c

    r22408 r22412  
    345345    HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (&ppdev->hgsmiDisplayHeap, p);
    346346
     347    DISPDBG((0, "VBoxDISP::vboxHGSMIBufferSubmit: offset 0x%x\n", offBuffer));
     348
    347349    ppdev->pfnHGSMIGHCommandPost(ppdev->hMpHGSMI, offBuffer);
    348350//    ASMOutU16 (VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_VBVA_GUEST);
     
    389391    BOOL bRc = FALSE;
    390392
    391     DISPDBG((1, "VBoxDisp::vboxVbvaEnable called\n"));
     393    DISPDBG((1, "VBoxDisp::vboxVbvaEnable called ppdev %p, hgsmi %d, vbva %p\n", ppdev, ppdev->bHGSMISupported, ppdev->pVBVA));
    392394
    393395    if (ppdev->bHGSMISupported)
    394396    {
    395397        VBVABUFFER *pVBVA = (VBVABUFFER *)((uint8_t *)ppdev->pjScreen + ppdev->layout.offVBVABuffer);
     398
     399        DISPDBG((1, "VBoxDisp::vboxVbvaEnable screen %p vbva off 0x%x\n", ppdev->pjScreen, ppdev->layout.offVBVABuffer));
    396400
    397401        pVBVA->u32HostEvents      = 0;
     
    677681            pScreen->i32OriginX      = ppdev->ptlDevOrg.x;
    678682            pScreen->i32OriginY      = ppdev->ptlDevOrg.y;
     683            pScreen->u32StartOffset  = 0;
    679684            pScreen->u32LineSize     = ppdev->lDeltaScreen > 0?ppdev->lDeltaScreen: -ppdev->lDeltaScreen;
    680685            pScreen->u32Width        = ppdev->cxScreen;
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r22141 r22412  
    15651565                Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes));
    15661566#else
    1567                 Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));
    1568 #endif/* VBOX_WITH_HGSMI */
     1567                Result = vboxUpdatePointerShape(((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary, &PointerAttributes, sizeof (PointerAttributes));
     1568#endif /* VBOX_WITH_HGSMI */
    15691569
    15701570                if (!Result)
     
    15971597                Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes));
    15981598#else
    1599                 Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));
    1600 #endif/* VBOX_WITH_HGSMI */
     1599                Result = vboxUpdatePointerShape(((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary, &PointerAttributes, sizeof (PointerAttributes));
     1600#endif /* VBOX_WITH_HGSMI */
    16011601
    16021602                if (!Result)
     
    16441644                Result = vboxUpdatePointerShape(pPointerAttributes, RequestPacket->InputBufferLength);
    16451645#else
    1646                 Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, pPointerAttributes, RequestPacket->InputBufferLength);
    1647 #endif/* VBOX_WITH_HGSMI */
     1646                Result = vboxUpdatePointerShape(((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary, pPointerAttributes, RequestPacket->InputBufferLength);
     1647#endif /* VBOX_WITH_HGSMI */
    16481648                if (!Result)
    16491649                    dprintf(("VBoxVideo::VBoxVideoStartIO: Could not set hardware pointer -> fallback\n"));
     
    22252225    VP_STATUS Status;
    22262226
    2227     dprintf(("VBoxVideo::VBoxVideoMapVideoMemory\n"));
     2227    dprintf(("VBoxVideo::VBoxVideoMapVideoMemory: fb offset 0x%x\n", DeviceExtension->ulFrameBufferOffset));
    22282228
    22292229    FrameBuffer.QuadPart = VBE_DISPI_LFB_PHYSICAL_ADDRESS + DeviceExtension->ulFrameBufferOffset;
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