VirtualBox

Changeset 106221 in vbox for trunk


Ignore:
Timestamp:
Oct 4, 2024 7:51:37 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165005
Message:

3D: Skip SVGA_CMD_BLIT_GRMFB_TO_SCREEN if Src and Dst buffers overlap. bugref:10580

File:
1 edited

Legend:

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

    r106061 r106221  
    83608360        }
    83618361
     8362        if (pbDst > pbSrc)
     8363        {
     8364            if (pbDst - pbSrc < cbSrcPitch * cHeight)
     8365            {
     8366                LogRelMax(4, ("Src buffer 0x%p overlaps Dst buffer 0x%p\n", pbSrc, pbDst));
     8367                return VERR_INVALID_PARAMETER;
     8368            }
     8369        }
     8370        else if (pbSrc > pbDst)
     8371        {
     8372            if (pbSrc - pbDst < cbDstPitch * cHeight)
     8373            {
     8374                LogRelMax(4, ("Dst buffer 0x%p overlaps Src buffer 0x%p\n", pbDst, pbSrc));
     8375                return VERR_INVALID_PARAMETER;
     8376            }
     8377        }
     8378        else
     8379        {
     8380            LogRelMax(4, ("Dst and Src buffers are both start at 0x%p\n", pbDst));
     8381            return VERR_INVALID_PARAMETER;
     8382        }
     8383
    83628384        if (   cbWidth == (uint32_t)cbGstPitch
    83638385            && cbGstPitch == cbHstPitch)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette