diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-06-08 03:13:20 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-05 21:49:15 +0200 |
commit | a45643cb3b07e76e73814baf1d472d636dd2cd91 (patch) | |
tree | 8cea1037fcfdaa473f8362686ff2d46ee10745d5 /src/video_core/gpu.cpp | |
parent | Gpu: Implement Hardware Interrupt Manager and manage GPU interrupts (diff) | |
download | yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.tar yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.tar.gz yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.tar.bz2 yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.tar.lz yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.tar.xz yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.tar.zst yuzu-a45643cb3b07e76e73814baf1d472d636dd2cd91.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/gpu.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 06eb570ab..1fa6770ca 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -95,6 +95,17 @@ void GPU::RegisterEvent(const u32 event_id, const u32 syncpoint_id, const u32 va events[syncpoint_id].emplace_back(event_id, value); } +void GPU::CancelEvent(const u32 event_id, const u32 syncpoint_id, const u32 value) { + auto it = events[syncpoint_id].begin(); + while (it != events[syncpoint_id].end()) { + if (value == it->value) { + it = events[syncpoint_id].erase(it); + return; + } + it++; + } +} + u32 RenderTargetBytesPerPixel(RenderTargetFormat format) { ASSERT(format != RenderTargetFormat::NONE); |