Changeset 106155 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 25, 2024 6:47:15 PM (5 months ago)
- svn:sync-xref-src-repo-rev:
- 164934
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp
r106154 r106155 2619 2619 dxgiFormatDynamic = dxgiFormatTypeless; 2620 2620 2621 UINT const BindFlags = dxBindFlags(pSurface->f.surfaceFlags); 2622 2621 2623 /* 2622 2624 * Create D3D11 texture object. 2625 * 2626 * No initial data for multisample resources. 2627 * On NVidia the host driver does not allow initial data for large textures with D3D11_BIND_DECODER flag. 2623 2628 */ 2624 2629 D3D11_SUBRESOURCE_DATA *paInitialData = NULL; 2625 if (pSurface->paMipmapLevels[0].pSurfaceData && pSurface->surfaceDesc.multisampleCount <= 1) 2630 if ( pSurface->paMipmapLevels[0].pSurfaceData 2631 && pSurface->surfaceDesc.multisampleCount <= 1 2632 && (BindFlags & D3D11_BIND_DECODER) == 0 2633 ) 2626 2634 { 2627 2635 /* Can happen for a non GBO surface or if GBO texture was updated prior to creation of the hardware resource. */ … … 11386 11394 ProfileCount = RT_MIN(ProfileCount, cbData / sizeof(paDecodeProfileInfo[0])); 11387 11395 11388 #ifndef DEBUG_sunlover11389 /** @todo Allocation of video decoder output texture often fails on NVidia. Disable video decoding for now. */11390 if (pThisCC->svga.p3dState->pBackend->VendorId == 0x10de)11391 ProfileCount = 0;11392 #else11393 11396 RT_NOREF(pThisCC); 11394 #endif11395 11397 11396 11398 for (UINT i = 0; i < ProfileCount; ++i)
Note:
See TracChangeset
for help on using the changeset viewer.