VirtualBox

Changeset 95463 in vbox


Ignore:
Timestamp:
Jun 30, 2022 1:15:05 PM (3 years ago)
Author:
vboxsync
Message:

DevVGA: vgaIsDirty is now used in R3 only.

File:
1 edited

Legend:

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

    r95461 r95463  
    351351}
    352352
     353#ifdef IN_RING3
     354
    353355/**
    354356 * Tests if a VRAM page is dirty.
     
    359361 * @param   offVRAM     The VRAM offset of the page to check.
    360362 */
    361 DECLINLINE(bool) vgaIsDirty(PVGASTATE pThis, RTGCPHYS offVRAM)
     363DECLINLINE(bool) vgaR3IsDirty(PVGASTATE pThis, RTGCPHYS offVRAM)
    362364{
    363365    AssertMsg(offVRAM < pThis->vram_size, ("offVRAM = %p, pThis->vram_size = %p\n", offVRAM, pThis->vram_size));
     
    365367}
    366368
    367 #ifdef IN_RING3
    368369
    369370/**
     
    23452346         * anything wider than 2050 pixels @32bpp. Need to check all pages
    23462347         * between the first and last one. */
    2347         bool     fUpdate    = fFullUpdate | vgaIsDirty(pThis, offPage0) | vgaIsDirty(pThis, offPage1);
     2348        bool     fUpdate    = fFullUpdate | vgaR3IsDirty(pThis, offPage0) | vgaR3IsDirty(pThis, offPage1);
    23482349        if (offPage1 - offPage0 > GUEST_PAGE_SIZE)
    23492350            /* if wide line, can use another page */
    2350             fUpdate |= vgaIsDirty(pThis, offPage0 + GUEST_PAGE_SIZE);
     2351            fUpdate |= vgaR3IsDirty(pThis, offPage0 + GUEST_PAGE_SIZE);
    23512352        /* explicit invalidation for the hardware cursor */
    23522353        fUpdate |= (pThis->invalidated_y_table[y >> 5] >> (y & 0x1f)) & 1;
     
    25442545         * anything wider than 2050 pixels @32bpp. Need to check all pages
    25452546         * between the first and last one. */
    2546         bool update = full_update | vgaIsDirty(pThis, page0) | vgaIsDirty(pThis, page1);
     2547        bool update = full_update | vgaR3IsDirty(pThis, page0) | vgaR3IsDirty(pThis, page1);
    25472548        if (page1 - page0 > GUEST_PAGE_SIZE) {
    25482549            /* if wide line, can use another page */
    2549             update |= vgaIsDirty(pThis, page0 + GUEST_PAGE_SIZE);
     2550            update |= vgaR3IsDirty(pThis, page0 + GUEST_PAGE_SIZE);
    25502551        }
    25512552        /* explicit invalidation for the hardware cursor */
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