Changeset 79782 in vbox for trunk/src/VBox/Additions/3D/win
- Timestamp:
- Jul 15, 2019 9:22:26 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/3D/win/VBoxGL/GaDrvEnvKMT.cpp
r78601 r79782 386 386 } 387 387 388 VBoxDispMpLoggerLogF("WDDM: EnvKMT: unsupported surface format %d\n", format); 388 389 Assert(0); 389 VBoxDispMpLoggerLogF("WDDM: EnvKMT: unsupported surface format %d\n", format);390 390 return D3DDDIFMT_UNKNOWN; 391 391 } … … 405 405 uint8_t *pu8Req; 406 406 uint32_t cbReq; 407 408 /* First check if the format is supported. */ 409 D3DDDIFORMAT const ddiFormat = svgaToD3DDDIFormat((SVGA3dSurfaceFormat)pCreateParms->format); 410 if (ddiFormat == D3DDDIFMT_UNKNOWN) 411 return -1; 407 412 408 413 /* Size of the SVGA request data */ … … 459 464 wddmAllocInfo.SurfDesc.width = paSizes[0].cWidth; 460 465 wddmAllocInfo.SurfDesc.height = paSizes[0].cHeight; 461 wddmAllocInfo.SurfDesc.format = svgaToD3DDDIFormat((SVGA3dSurfaceFormat)pCreateParms->format);466 wddmAllocInfo.SurfDesc.format = ddiFormat; 462 467 wddmAllocInfo.SurfDesc.VidPnSourceId = 0; 463 468 wddmAllocInfo.SurfDesc.bpp = vboxWddmCalcBitsPerPixel(wddmAllocInfo.SurfDesc.format);
Note:
See TracChangeset
for help on using the changeset viewer.