Changeset 105644 in vbox
- Timestamp:
- Aug 9, 2024 11:24:24 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp
r105575 r105644 6000 6000 } 6001 6001 #endif 6002 PVMSVGA3DSURFACE pSurface = NULL; 6002 6003 ID3D11Buffer *pBuffer = NULL; 6003 6004 if (pBufferPipeline->bufferId != SVGA3D_INVALID_ID) 6004 6005 { 6005 PVMSVGA3DSURFACE pSurface;6006 6006 ID3D11Resource *pResource; 6007 6007 int rc = dxEnsureResource(pThisCC, pBufferPipeline->bufferId, &pSurface, &pResource); … … 6017 6017 { 6018 6018 LogFunc(("vb[%u]: %p\n", i, pBuffer)); 6019 paStride[i] = pBufferPipeline->stride; 6020 paOffset[i] = pBufferPipeline->offset; 6019 6020 /* DX11 supports stride up tp 2048. Ignore large values (> 40000) that Ubuntu guest might send. */ 6021 paStride[i] = pBufferPipeline->stride <= 2048 ? pBufferPipeline->stride : 0; 6022 6023 if ( paStride[i] <= pSurface->paMipmapLevels[0].cbSurface 6024 && pBufferPipeline->offset <= pSurface->paMipmapLevels[0].cbSurface - paStride[i]) 6025 paOffset[i] = pBufferPipeline->offset; 6026 else 6027 { 6028 paStride[i] = 0; 6029 paOffset[i] = 0; 6030 } 6021 6031 } 6022 6032 else
Note:
See TracChangeset
for help on using the changeset viewer.