VirtualBox

Ignore:
Timestamp:
Jul 20, 2018 9:27:15 PM (7 years ago)
Author:
vboxsync
Message:

DevVGA-SVGA3d-ogl: reverted a part of previous commit: SVGA3D_TS_TEXTURE_MIPMAP_LEVEL is GL_TEXTURE_BASE_LEVEL; deleted some unnecessary code.

File:
1 edited

Legend:

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

    r73238 r73283  
    19361936int vmsvga3dSurfaceCopy(PVGASTATE pThis, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src, uint32_t cCopyBoxes, SVGA3dCopyBox *pBox)
    19371937{
    1938     PVMSVGA3DSTATE      pState = pThis->svga.p3dState;
    1939     uint32_t            sidSrc = src.sid;
    1940     uint32_t            sidDest = dest.sid;
    1941     int                 rc = VINF_SUCCESS;
    1942 
    1943     AssertReturn(pState, VERR_NO_MEMORY);
    1944     Assert(sidSrc < SVGA3D_MAX_SURFACE_IDS);
    1945     AssertReturn(sidSrc < pState->cSurfaces && pState->papSurfaces[sidSrc]->id == sidSrc, VERR_INVALID_PARAMETER);
    1946     Assert(sidDest < SVGA3D_MAX_SURFACE_IDS);
    1947     AssertReturn(sidDest < pState->cSurfaces && pState->papSurfaces[sidDest]->id == sidDest, VERR_INVALID_PARAMETER);
    1948 
    19491938    for (uint32_t i = 0; i < cCopyBoxes; i++)
    19501939    {
     
    19651954        destBox.d = pBox[i].d;
    19661955
    1967         rc = vmsvga3dSurfaceStretchBlt(pThis, &dest, &destBox, &src, &srcBox, SVGA3D_STRETCH_BLT_LINEAR);
     1956        int rc = vmsvga3dSurfaceStretchBlt(pThis, &dest, &destBox, &src, &srcBox, SVGA3D_STRETCH_BLT_LINEAR);
    19681957        AssertRCReturn(rc, rc);
    19691958    }
     
    22062195    VMSVGA3D_CHECK_LAST_ERROR(pState, pContext);
    22072196
    2208     Log(("src conv. (%d,%d)(%d,%d); dest conv (%d,%d)(%d,%d)\n", pSrcBox->x, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y + pSrcBox->h),
    2209          pSrcBox->x + pSrcBox->w, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y), pDstBox->x, D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y + pDstBox->h),
     2197    Log(("src conv. (%d,%d)(%d,%d); dest conv (%d,%d)(%d,%d)\n",
     2198         pSrcBox->x, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y + pSrcBox->h),
     2199         pSrcBox->x + pSrcBox->w, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y),
     2200         pDstBox->x, D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y + pDstBox->h),
    22102201         pDstBox->x + pDstBox->w, D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y)));
    22112202
     
    52965287
    52975288        case SVGA3D_TS_TEXTURE_MIPMAP_LEVEL:        /* uint32_t */
    5298             textureType = GL_TEXTURE_MAX_LEVEL;
     5289            textureType = GL_TEXTURE_BASE_LEVEL;
    52995290            val = pTextureState[i].value;
    53005291            break;
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