- Timestamp:
- Oct 11, 2012 7:09:51 AM (12 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h
r43360 r43607 35 35 36 36 /* One would increase this whenever definitions in this file are changed */ 37 #define VBOXVIDEOIF_VERSION 1 337 #define VBOXVIDEOIF_VERSION 14 38 38 39 39 #define VBOXWDDM_NODE_ID_SYSTEM 0 … … 92 92 UINT depth; 93 93 UINT slicePitch; 94 UINT d3dWidth; 94 95 UINT cbSize; 95 96 D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxD3DIf.cpp
r43360 r43607 483 483 { 484 484 hr = pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9CreateCubeTexture((IDirect3DDevice9Ex *)pDevice9If, 485 pAllocation-> D3DWidth,485 pAllocation->SurfDesc.d3dWidth, 486 486 VBOXDISP_CUBEMAP_LEVELS_COUNT(pRc), 487 487 vboxDDI2D3DUsage(pRc->RcDesc.fFlags), … … 503 503 { 504 504 hr = pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9CreateVolumeTexture((IDirect3DDevice9Ex *)pDevice9If, 505 pAllocation-> D3DWidth,505 pAllocation->SurfDesc.d3dWidth, 506 506 pAllocation->SurfDesc.height, 507 507 pAllocation->SurfDesc.depth, … … 524 524 { 525 525 hr = pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9CreateTexture((IDirect3DDevice9Ex *)pDevice9If, 526 pAllocation-> D3DWidth,526 pAllocation->SurfDesc.d3dWidth, 527 527 pAllocation->SurfDesc.height, 528 528 pRc->cAllocations, -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r43606 r43607 2921 2921 VBOXVDBG_CHECK_SMSYNC(pSrcRc); 2922 2922 2923 if (pSrcRc->aAllocations[0]. D3DWidth == pDstRc->aAllocations[0].D3DWidth2923 if (pSrcRc->aAllocations[0].SurfDesc.d3dWidth == pDstRc->aAllocations[0].SurfDesc.d3dWidth 2924 2924 && pSrcRc->aAllocations[0].SurfDesc.height == pDstRc->aAllocations[0].SurfDesc.height 2925 2925 && pSrcRc->RcDesc.enmFormat == pDstRc->RcDesc.enmFormat … … 4113 4113 pAllocation->iAlloc = i; 4114 4114 pAllocation->pRc = pRc; 4115 pAllocation-> D3DWidth = pSurf->Width;4115 pAllocation->SurfDesc.d3dWidth = pSurf->Width; 4116 4116 pAllocation->pvMem = (void*)pSurf->pSysMem; 4117 4117 pAllocation->SurfDesc.slicePitch = pSurf->SysMemSlicePitch; … … 4145 4145 { 4146 4146 Assert(pAllocation->SurfDesc.pitch > minPitch); 4147 pAllocation-> D3DWidth = vboxWddmCalcWidthForPitch(pAllocation->SurfDesc.pitch, pAllocation->SurfDesc.format);4147 pAllocation->SurfDesc.d3dWidth = vboxWddmCalcWidthForPitch(pAllocation->SurfDesc.pitch, pAllocation->SurfDesc.format); 4148 4148 Assert(VBOXWDDMDISP_IS_TEXTURE(pRc->RcDesc.fFlags) && !pRc->RcDesc.fFlags.CubeMap); /* <- tested for textures only! */ 4149 4149 } 4150 Assert(pAllocation-> D3DWidth >= pAllocation->SurfDesc.width);4150 Assert(pAllocation->SurfDesc.d3dWidth >= pAllocation->SurfDesc.width); 4151 4151 } 4152 4152 else 4153 4153 { 4154 Assert(pAllocation-> D3DWidth == pAllocation->SurfDesc.width);4154 Assert(pAllocation->SurfDesc.d3dWidth == pAllocation->SurfDesc.width); 4155 4155 } 4156 4156 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.h
r43340 r43607 262 262 struct VBOXWDDMDISP_RESOURCE *pRc; 263 263 void* pvMem; 264 UINT D3DWidth;265 264 /* object type is defined by enmD3DIfType enum */ 266 265 IUnknown *pD3DIf; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispDbg.cpp
r43236 r43607 242 242 { 243 243 UINT bpp = vboxWddmCalcBitsPerPixel(pAlloc->SurfDesc.format); 244 vboxVDbgDoPrintDumpCmd("Surf Info", LockData.pData, pAlloc-> D3DWidth, pAlloc->SurfDesc.height, bpp, pAlloc->SurfDesc.pitch);244 vboxVDbgDoPrintDumpCmd("Surf Info", LockData.pData, pAlloc->SurfDesc.d3dWidth, pAlloc->SurfDesc.height, bpp, pAlloc->SurfDesc.pitch); 245 245 if (pRect) 246 246 { … … 631 631 bFrontBuf = (vboxWddmSwapchainGetFb(pSwapchain)->pAlloc == pAlloc); 632 632 } 633 vboxVDbgPrint(("%s D3DWidth(%d), width(%d), height(%d), format(%d), usage(%s), %s", pPrefix,634 pAlloc-> D3DWidth, pAlloc->SurfDesc.width, pAlloc->SurfDesc.height, pAlloc->SurfDesc.format,633 vboxVDbgPrint(("%s d3dWidth(%d), width(%d), height(%d), format(%d), usage(%s), %s", pPrefix, 634 pAlloc->SurfDesc.d3dWidth, pAlloc->SurfDesc.width, pAlloc->SurfDesc.height, pAlloc->SurfDesc.format, 635 635 bPrimary ? 636 636 (bFrontBuf ? "Front Buffer" : "Back Buffer")
Note:
See TracChangeset
for help on using the changeset viewer.