VirtualBox

Changeset 86841 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 9, 2020 11:37:48 PM (4 years ago)
Author:
vboxsync
Message:

Devices/Graphics: A couple of new commands; a more generic handler for creating a surface; cleaned saved state data for a surface; increased saved state version; possibility to build DX11 backend. bugref:9830 (solaris build fix)

File:
1 edited

Legend:

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

    r86840 r86841  
    277277
    278278#if !defined(VMSVGA3D_DX)
     279# ifdef VBOX_WITH_VMSVGA3D
    279280/*
    280281 * Stubs for old backends.
     
    303304    return VERR_NOT_IMPLEMENTED;
    304305}
     306# endif
    305307#endif
    306308
     
    326328
    327329    /* Verify and normalize the ptDepth value. */
    328     if (RT_LIKELY(ptDepth >= SVGA3D_MOBFMT_PTDEPTH64_0 && ptDepth <= SVGA3D_MOBFMT_PTDEPTH64_2))
     330    if (RT_LIKELY(   ptDepth == SVGA3D_MOBFMT_PTDEPTH64_0
     331                  || ptDepth == SVGA3D_MOBFMT_PTDEPTH64_1
     332                  || ptDepth == SVGA3D_MOBFMT_PTDEPTH64_2))
    329333        ASSERT_GUEST_RETURN(fGCPhys64, VERR_INVALID_PARAMETER);
    330     else if (ptDepth >= SVGA3D_MOBFMT_PTDEPTH_0 && ptDepth <= SVGA3D_MOBFMT_PTDEPTH_2)
     334    else if (   ptDepth == SVGA3D_MOBFMT_PTDEPTH_0
     335             || ptDepth == SVGA3D_MOBFMT_PTDEPTH_1
     336             || ptDepth == SVGA3D_MOBFMT_PTDEPTH_2)
    331337    {
    332338        ASSERT_GUEST_RETURN(!fGCPhys64, VERR_INVALID_PARAMETER);
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