VirtualBox

Changeset 22726 in vbox for trunk


Ignore:
Timestamp:
Sep 2, 2009 5:09:36 PM (15 years ago)
Author:
vboxsync
Message:

HGSMI/VBVA saved state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r22652 r22726  
    464464static int vbvaEnable (unsigned uScreenId, PVGASTATE pVGAState, VBVACONTEXT *pCtx, VBVABUFFER *pVBVA, uint32_t u32Offset)
    465465{
    466     /* Process any pending orders and empty the VBVA ring buffer. */
    467     vbvaFlush (pVGAState, pCtx);
    468 
    469466    /* @todo old code did a UpdateDisplayAll at this place. */
    470467
     
    696693                AssertRCReturn(rc, rc);
    697694
    698                 rc = SSMR3PutU32 (pSSM, pView->u32VBVAOffset);
     695                rc = SSMR3PutU32 (pSSM, pView->pVBVA? pView->u32VBVAOffset: HGSMIOFFSET_VOID);
    699696                AssertRCReturn(rc, rc);
    700697
     
    802799                }
    803800
    804                 if (pView->u32VBVAOffset == HGSMIOFFSET_VOID)
     801                if (   pView->u32VBVAOffset == HGSMIOFFSET_VOID
     802                    || pView->screen.u32LineSize == 0) /* Earlier broken saved states. */
    805803                {
    806804                    pView->pVBVA = NULL;
     
    838836            if (pView->pVBVA)
    839837            {
     838                vbvaEnable (iView, pVGAState, pCtx, pView->pVBVA, pView->u32VBVAOffset);
    840839                vbvaResize (pVGAState, pView, &pView->screen);
    841840            }
     
    12721271                if (pVBVA)
    12731272                {
     1273                    /* Process any pending orders and empty the VBVA ring buffer. */
     1274                    vbvaFlush (pVGAState, pCtx);
     1275
    12741276                    rc = vbvaEnable (uScreenId, pVGAState, pCtx, pVBVA, u32Offset);
    12751277                }
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