summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/gsp_gpu.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-01-14 06:26:27 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-01-14 08:20:13 +0100
commit7630b3167210cc7f84c83af54dde23be948e3bc5 (patch)
treeea2d84fc067d6f2ec02f0745bebb93fdf68b6390 /src/core/hle/service/gsp_gpu.cpp
parentGPU: Do periodic VBlank updates using CoreTiming (diff)
downloadyuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.tar
yuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.tar.gz
yuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.tar.bz2
yuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.tar.lz
yuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.tar.xz
yuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.tar.zst
yuzu-7630b3167210cc7f84c83af54dde23be948e3bc5.zip
Diffstat (limited to 'src/core/hle/service/gsp_gpu.cpp')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 00a941658..4ca2b9bd0 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -210,12 +210,12 @@ void SignalInterrupt(InterruptId interrupt_id) {
}
for (int thread_id = 0; thread_id < 0x4; ++thread_id) {
InterruptRelayQueue* interrupt_relay_queue = GetInterruptRelayQueue(thread_id);
- interrupt_relay_queue->number_interrupts = interrupt_relay_queue->number_interrupts + 1;
-
u8 next = interrupt_relay_queue->index;
next += interrupt_relay_queue->number_interrupts;
next = next % 0x34; // 0x34 is the number of interrupt slots
+ interrupt_relay_queue->number_interrupts += 1;
+
interrupt_relay_queue->slot[next] = interrupt_id;
interrupt_relay_queue->error_code = 0x0; // No error