VirtualBox

Ignore:
Timestamp:
Jul 1, 2014 6:14:02 PM (10 years ago)
Author:
vboxsync
Message:

Merged in iprt++ dev branch.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp

    r51330 r51770  
    12631263NTSTATUS vboxVdmaTexPresentSetAlloc(PVBOXMP_DEVEXT pDevExt, const VBOXWDDM_ALLOC_DATA *pAllocData)
    12641264{
    1265     VBOXMP_CRPACKER CrPacker;
    1266     VBoxMpCrPackerInit(&CrPacker);
    12671265    uint32_t u32CrConClientID;
    1268 
    12691266    NTSTATUS Status = vboxVdmaCrCtlGetDefaultClientId(pDevExt, &u32CrConClientID);
    12701267    if (!NT_SUCCESS(Status))
     
    12731270        return Status;
    12741271    }
     1272
     1273    VBOXMP_CRPACKER *pCrPacker = (VBOXMP_CRPACKER *)RTMemTmpAlloc(sizeof(*pCrPacker));
     1274    if (!pCrPacker)
     1275        return STATUS_NO_MEMORY;
     1276    VBoxMpCrPackerInit(pCrPacker);
    12751277
    12761278    RECT Rect;
     
    12811283
    12821284    if (pDevExt->fCmdVbvaEnabled)
    1283         return vboxVdmaTexPresentSubmit(pDevExt, &CrPacker, u32CrConClientID, pAllocData->hostID, pAllocData->SurfDesc.VidPnSourceId, 0, 0, 1, (RTRECT*)&Rect);
    1284 
    1285     if (pDevExt->fTexPresentEnabled)
     1285        Status = vboxVdmaTexPresentSubmit(pDevExt, pCrPacker, u32CrConClientID, pAllocData->hostID, pAllocData->SurfDesc.VidPnSourceId, 0, 0, 1, (RTRECT*)&Rect);
     1286    else if (pDevExt->fTexPresentEnabled)
    12861287    {
    12871288        VBOXVDMAPIPE_RECTS RectInfo;
     
    12901291        RectInfo.UpdateRects.aRects[0] = Rect;
    12911292
    1292         return vboxVdmaProcessVRegTexPresent(pDevExt, &CrPacker, u32CrConClientID,
     1293        Status = vboxVdmaProcessVRegTexPresent(pDevExt, pCrPacker, u32CrConClientID,
    12931294                pAllocData, pAllocData,
    12941295                &Rect, &RectInfo);
    12951296    }
    1296 
    1297     return STATUS_NOT_IMPLEMENTED;
     1297    else
     1298        Status = STATUS_NOT_IMPLEMENTED;
     1299
     1300    RTMemTmpFree(pCrPacker);
     1301    return Status;
    12981302}
    12991303
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