VirtualBox

Changeset 102627 in vbox


Ignore:
Timestamp:
Dec 17, 2023 4:17:03 PM (12 months ago)
Author:
vboxsync
Message:

Devices/Graphics: corrected assertions for VGPU queries.

File:
1 edited

Legend:

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

    r102520 r102627  
    10711071    PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State;
    10721072
    1073     int rc;
    1074     Assert(pEntry->state == SVGADX_QDSTATE_ACTIVE);
    1075     if (pEntry->state == SVGADX_QDSTATE_ACTIVE)
     1073    int rc = VINF_SUCCESS;
     1074    if (pEntry->state == SVGADX_QDSTATE_ACTIVE || pEntry->state == SVGADX_QDSTATE_IDLE)
    10761075    {
    10771076        pEntry->state = SVGADX_QDSTATE_PENDING;
     
    10971096    }
    10981097    else
    1099         rc = VERR_INVALID_STATE;
     1098        AssertStmt(pEntry->state == SVGADX_QDSTATE_FINISHED, rc = VERR_INVALID_STATE);
    11001099
    11011100    return rc;
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