VirtualBox

Ignore:
Timestamp:
Oct 29, 2016 11:28:48 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111617
Message:

DevVGA_SVGA: fixed index/vertex buffer usage with recent Mesa

File:
1 edited

Legend:

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

    r62514 r64483  
    217217    if (surfaceFlags & SVGA3D_SURFACE_AUTOGENMIPMAPS)
    218218        pSurface->fUsageD3D |= D3DUSAGE_AUTOGENMIPMAP;
     219    pSurface->fu32ActualUsageFlags = 0;
    219220#else
    220221    vmsvga3dSurfaceFormat2OGL(pSurface, format);
     
    443444    AssertReturn(pSurface && pSurface->id == sid, VERR_INVALID_PARAMETER);
    444445
    445     AssertMsg(host.face == 0, ("host.face=%#x\n", host.face));
    446     AssertReturn(pSurface->faces[0].numMipLevels > host.mipmap, VERR_INVALID_PARAMETER);
    447     PVMSVGA3DMIPMAPLEVEL pMipLevel = &pSurface->pMipmapLevels[host.mipmap];
    448 
    449446    if (pSurface->flags & SVGA3D_SURFACE_HINT_TEXTURE)
    450447        Log(("vmsvga3dSurfaceDMA TEXTURE guestptr gmr=%x offset=%x pitch=%x host sid=%x face=%d mipmap=%d transfer=%s cCopyBoxes=%d\n", guest.ptr.gmrId, guest.ptr.offset, guest.pitch, host.sid, host.face, host.mipmap, (transfer == SVGA3D_WRITE_HOST_VRAM) ? "READ" : "WRITE", cCopyBoxes));
    451448    else
    452449        Log(("vmsvga3dSurfaceDMA guestptr gmr=%x offset=%x pitch=%x host sid=%x face=%d mipmap=%d transfer=%s cCopyBoxes=%d\n", guest.ptr.gmrId, guest.ptr.offset, guest.pitch, host.sid, host.face, host.mipmap, (transfer == SVGA3D_WRITE_HOST_VRAM) ? "READ" : "WRITE", cCopyBoxes));
     450
     451    AssertMsg(host.face == 0, ("host.face=%#x\n", host.face));
     452    AssertMsgReturn(pSurface->faces[0].numMipLevels > host.mipmap, ("numMipLevels %d, host.mipmap %d", pSurface->faces[0].numMipLevels, host.mipmap), VERR_INVALID_PARAMETER);
     453    PVMSVGA3DMIPMAPLEVEL pMipLevel = &pSurface->pMipmapLevels[host.mipmap];
    453454
    454455    if (!VMSVGA3DSURFACE_HAS_HW_SURFACE(pSurface))
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