Changeset 105971 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Sep 5, 2024 8:03:42 AM (7 months ago)
- svn:sync-xref-src-repo-rev:
- 164711
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r105254 r105971 246 246 /** @} */ 247 247 248 /** 3D hardware acceleration supported? Tristate, -1 meaning not probed. */249 int f3DAccelerationSupported;250 251 248 HostPowerService *pHostPowerService; 252 249 /** Host's DNS information fetching */ … … 456 453 m->fRecheckVTSupported = false; 457 454 } 458 459 #ifdef VBOX_WITH_3D_ACCELERATION460 /* Test for 3D hardware acceleration support later when (if ever) need. */461 m->f3DAccelerationSupported = -1;462 #else463 m->f3DAccelerationSupported = false;464 #endif465 455 466 456 #if defined(VBOX_WITH_HOSTNETIF_API) && (defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)) … … 1471 1461 1472 1462 return S_OK; 1473 }1474 1475 1476 HRESULT Host::getAcceleration3DAvailable(BOOL *aSupported)1477 {1478 HRESULT hrc = S_OK;1479 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);1480 if (m->f3DAccelerationSupported != -1)1481 *aSupported = m->f3DAccelerationSupported;1482 else1483 {1484 alock.release();1485 1486 #ifdef VBOX_WITH_3D_ACCELERATION1487 bool fSupported = true; // Test if Vulkan or DirectX is appropriately supported on the host1488 #else1489 bool fSupported = false; /* shouldn't get here, but just in case. */1490 #endif1491 AutoWriteLock alock2(this COMMA_LOCKVAL_SRC_POS);1492 1493 m->f3DAccelerationSupported = fSupported;1494 alock2.release();1495 *aSupported = fSupported;1496 }1497 1498 #ifdef DEBUG_misha1499 AssertMsgFailed(("should not be here any more!\n"));1500 #endif1501 1502 return hrc;1503 1463 } 1504 1464
Note:
See TracChangeset
for help on using the changeset viewer.