diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-01-30 23:13:46 +0100 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-10-06 21:00:52 +0200 |
| commit | 43d8a8fb7763a7db3f8ee217934b995a34b11215 (patch) | |
| tree | 3c10b169e9e94041955500e4ed46e664255e4349 /src/video_core/host1x/syncpoint_manager.cpp | |
| parent | 383f95a063db1619300996945cc8512f8d91f237 (diff) | |
NVDRV: Further refactors and eliminate old code.
Diffstat (limited to 'src/video_core/host1x/syncpoint_manager.cpp')
| -rw-r--r-- | src/video_core/host1x/syncpoint_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/host1x/syncpoint_manager.cpp b/src/video_core/host1x/syncpoint_manager.cpp index c606b8bd0d..825bd551e7 100644 --- a/src/video_core/host1x/syncpoint_manager.cpp +++ b/src/video_core/host1x/syncpoint_manager.cpp @@ -2,12 +2,15 @@ // Licensed under GPLv3 or any later version // Refer to the license.txt file included. +#include "common/microprofile.h" #include "video_core/host1x/syncpoint_manager.h" namespace Tegra { namespace Host1x { +MICROPROFILE_DEFINE(GPU_wait, "GPU", "Wait for the GPU", MP_RGB(128, 128, 192)); + SyncpointManager::ActionHandle SyncpointManager::RegisterAction( std::atomic<u32>& syncpoint, std::list<RegisteredAction>& action_storage, u32 expected_value, std::function<void(void)>& action) { @@ -58,6 +61,7 @@ void SyncpointManager::WaitGuest(u32 syncpoint_id, u32 expected_value) { } void SyncpointManager::WaitHost(u32 syncpoint_id, u32 expected_value) { + MICROPROFILE_SCOPE(GPU_wait); Wait(syncpoints_host[syncpoint_id], wait_host_cv, expected_value); } |
