VirtualBox

Changeset 75460 in vbox for trunk/src


Ignore:
Timestamp:
Nov 14, 2018 7:46:14 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126615
Message:

WDDM: Gallium miniport driver: disable the device when the driver is stopped.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/Svga.cpp

    r75443 r75460  
    7373}
    7474
    75 void SvgaAdapterStop(PVBOXWDDM_EXT_VMSVGA pSvga)
     75void SvgaAdapterStop(PVBOXWDDM_EXT_VMSVGA pSvga,
     76                     DXGKRNL_INTERFACE *pDxgkInterface)
    7677{
    7778    if (pSvga)
     
    9394        }
    9495
     96        /* Enable SVGA device. */
     97        SVGARegWrite(pSvga, SVGA_REG_IRQMASK, 0);
     98        SVGARegWrite(pSvga, SVGA_REG_ENABLE, SVGA_REG_ENABLE_DISABLE);
     99
     100        NTSTATUS Status = pDxgkInterface->DxgkCbUnmapMemory(pDxgkInterface->DeviceHandle,
     101                                                            (PVOID)pSvga->pu32FIFO);
     102        Assert(Status == STATUS_SUCCESS); RT_NOREF(Status);
    95103        GaMemFree(pSvga);
    96104    }
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/Svga.h

    r75443 r75460  
    120120                          PHYSICAL_ADDRESS physIO,
    121121                          ULONG cbIO);
    122 void SvgaAdapterStop(PVBOXWDDM_EXT_VMSVGA pSvga);
     122void SvgaAdapterStop(PVBOXWDDM_EXT_VMSVGA pSvga,
     123                     DXGKRNL_INTERFACE *pDxgkInterface);
    123124
    124125NTSTATUS SvgaQueryInfo(PVBOXWDDM_EXT_VMSVGA pSvga,
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/gallium/VBoxMPGaWddm.cpp

    r75443 r75460  
    266266        if (pGaDevExt->hw.pSvga)
    267267        {
    268             SvgaAdapterStop(pGaDevExt->hw.pSvga);
     268            SvgaAdapterStop(pGaDevExt->hw.pSvga, &pDevExt->u.primary.DxgkInterface);
    269269            pGaDevExt->hw.pSvga = NULL;
    270270        }
Note: See TracChangeset for help on using the changeset viewer.

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