mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 05:27:58 -05:00
Gpu: Implement Hardware Interrupt Manager and manage GPU interrupts
This commit is contained in:
committed by
FernandoS27
parent
e0027eba85
commit
8942047d41
@ -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
|
||||
|
Reference in New Issue
Block a user