Gpu: Implement Hardware Interrupt Manager and manage GPU interrupts

This commit is contained in:
Fernando Sahmkow 2019-06-07 20:41:06 -04:00 committed by FernandoS27
parent e0027eba85
commit 8942047d41
13 changed files with 90 additions and 13 deletions

View file

@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/core.h"
#include "core/hardware_interrupt_manager.h"
#include "video_core/gpu_asynch.h"
#include "video_core/gpu_thread.h"
#include "video_core/renderer_base.h"
@ -38,4 +40,9 @@ void GPUAsynch::FlushAndInvalidateRegion(CacheAddr addr, u64 size) {
gpu_thread.FlushAndInvalidateRegion(addr, size);
}
void GPUAsynch::TriggerCpuInterrupt(const u32 event_id) const {
auto& interrupt_manager = system.InterruptManager();
interrupt_manager.InterruptGPU(event_id);
}
} // namespace VideoCommon