Changeset 95463 in vbox
- Timestamp:
- Jun 30, 2022 1:15:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r95461 r95463 351 351 } 352 352 353 #ifdef IN_RING3 354 353 355 /** 354 356 * Tests if a VRAM page is dirty. … … 359 361 * @param offVRAM The VRAM offset of the page to check. 360 362 */ 361 DECLINLINE(bool) vga IsDirty(PVGASTATE pThis, RTGCPHYS offVRAM)363 DECLINLINE(bool) vgaR3IsDirty(PVGASTATE pThis, RTGCPHYS offVRAM) 362 364 { 363 365 AssertMsg(offVRAM < pThis->vram_size, ("offVRAM = %p, pThis->vram_size = %p\n", offVRAM, pThis->vram_size)); … … 365 367 } 366 368 367 #ifdef IN_RING3368 369 369 370 /** … … 2345 2346 * anything wider than 2050 pixels @32bpp. Need to check all pages 2346 2347 * between the first and last one. */ 2347 bool fUpdate = fFullUpdate | vga IsDirty(pThis, offPage0) | vgaIsDirty(pThis, offPage1);2348 bool fUpdate = fFullUpdate | vgaR3IsDirty(pThis, offPage0) | vgaR3IsDirty(pThis, offPage1); 2348 2349 if (offPage1 - offPage0 > GUEST_PAGE_SIZE) 2349 2350 /* if wide line, can use another page */ 2350 fUpdate |= vga IsDirty(pThis, offPage0 + GUEST_PAGE_SIZE);2351 fUpdate |= vgaR3IsDirty(pThis, offPage0 + GUEST_PAGE_SIZE); 2351 2352 /* explicit invalidation for the hardware cursor */ 2352 2353 fUpdate |= (pThis->invalidated_y_table[y >> 5] >> (y & 0x1f)) & 1; … … 2544 2545 * anything wider than 2050 pixels @32bpp. Need to check all pages 2545 2546 * between the first and last one. */ 2546 bool update = full_update | vga IsDirty(pThis, page0) | vgaIsDirty(pThis, page1);2547 bool update = full_update | vgaR3IsDirty(pThis, page0) | vgaR3IsDirty(pThis, page1); 2547 2548 if (page1 - page0 > GUEST_PAGE_SIZE) { 2548 2549 /* if wide line, can use another page */ 2549 update |= vga IsDirty(pThis, page0 + GUEST_PAGE_SIZE);2550 update |= vgaR3IsDirty(pThis, page0 + GUEST_PAGE_SIZE); 2550 2551 } 2551 2552 /* explicit invalidation for the hardware cursor */
Note:
See TracChangeset
for help on using the changeset viewer.