VirtualBox

Ignore:
Timestamp:
May 25, 2010 5:26:57 PM (15 years ago)
Author:
vboxsync
Message:

wddm: driver update w/o reboot working; dummy context creation in CreateDevice

File:
1 edited

Legend:

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

    r29432 r29798  
    3939        VBVAENABLE *pEnable = &pEnableEx->Base;
    4040        pEnable->u32Flags  = bEnable? VBVA_F_ENABLE: VBVA_F_DISABLE;
    41         pEnable->u32Flags |= VBVA_F_EXTENDED;
     41        pEnable->u32Flags |= VBVA_F_EXTENDED | VBVA_F_ABSOFFSET;
    4242        pEnable->u32Offset = (uint32_t)pVbva->offVBVA;
    4343        pEnable->i32Result = VERR_NOT_SUPPORTED;
     
    119119}
    120120
     121int vboxVbvaDestroy(PDEVICE_EXTENSION pDevExt, VBOXVBVAINFO *pVbva)
     122{
     123    int rc = VINF_SUCCESS;
     124    /*rc = */VBoxUnmapAdapterMemory(pDevExt, (void**)&pVbva->pVBVA, pVbva->cbVBVA);
     125/*
     126    AssertRC(rc);
     127    if (RT_SUCCESS(rc))
     128*/
     129        memset(pVbva, 0, sizeof(VBOXVBVAINFO));
     130/*
     131    else
     132        drprintf((__FUNCTION__": VBoxUnmapAdapterMemory failed, rc (%d)\n", rc));
     133*/
     134    return rc;
     135}
     136
    121137/*
    122138 * Private operations.
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