VirtualBox

Changeset 99824 in vbox for trunk


Ignore:
Timestamp:
May 17, 2023 8:20:47 AM (20 months ago)
Author:
vboxsync
Message:

Devices/Graphics: correct assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r99775 r99824  
    70587058        vmsvgaR3GetCaps(pThis, pThisCC, &u32DeviceCaps, &u32DeviceCaps2, &u32FIFOCaps);
    70597059
    7060         /* Capabilities should not change normally. */
    7061         Assert(   pThis->svga.u32DeviceCaps == u32DeviceCaps
    7062                && pThis->svga.u32DeviceCaps2 == u32DeviceCaps2
    7063                && pThisCC->svga.pau32FIFO[SVGA_FIFO_CAPABILITIES] == u32FIFOCaps);
     7060        /* Capabilities should not change normally.
     7061         * However the saved state might have a subset of currently implemented caps.
     7062         */
     7063        Assert(   (pThis->svga.u32DeviceCaps & u32DeviceCaps) == pThis->svga.u32DeviceCaps
     7064               && (pThis->svga.u32DeviceCaps2 & u32DeviceCaps2) == pThis->svga.u32DeviceCaps2
     7065               && (pThisCC->svga.pau32FIFO[SVGA_FIFO_CAPABILITIES] & u32FIFOCaps) == pThisCC->svga.pau32FIFO[SVGA_FIFO_CAPABILITIES]);
    70647066    }
    70657067#endif
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