Changeset 64483 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp
- Timestamp:
- Oct 29, 2016 11:28:48 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 111617
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp
r62514 r64483 217 217 if (surfaceFlags & SVGA3D_SURFACE_AUTOGENMIPMAPS) 218 218 pSurface->fUsageD3D |= D3DUSAGE_AUTOGENMIPMAP; 219 pSurface->fu32ActualUsageFlags = 0; 219 220 #else 220 221 vmsvga3dSurfaceFormat2OGL(pSurface, format); … … 443 444 AssertReturn(pSurface && pSurface->id == sid, VERR_INVALID_PARAMETER); 444 445 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 449 446 if (pSurface->flags & SVGA3D_SURFACE_HINT_TEXTURE) 450 447 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)); 451 448 else 452 449 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]; 453 454 454 455 if (!VMSVGA3DSURFACE_HAS_HW_SURFACE(pSurface))
Note:
See TracChangeset
for help on using the changeset viewer.