summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormailwl <mailwl@gmail.com>2016-04-23 15:17:03 +0200
committermailwl <mailwl@gmail.com>2016-04-23 15:17:03 +0200
commit67c657bf80513c02f4e60e0953c58103e9f80405 (patch)
tree9fed13e9d025841696f506214e5ee5cc61bacc21 /src
parentgsp::Gpu: implement AcquireRight, ReleaseRight functions (diff)
downloadyuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar
yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.gz
yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.bz2
yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.lz
yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.xz
yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.zst
yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/gsp_gpu.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 9fb4962d8..d254fdd2e 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -376,7 +376,14 @@ void SignalInterrupt(InterruptId interrupt_id) {
if (!gpu_right_acquired) {
return;
}
-
+ if (nullptr == g_interrupt_event) {
+ LOG_WARNING(Service_GSP, "cannot synchronize until GSP event has been created!");
+ return;
+ }
+ if (nullptr == g_shared_memory) {
+ LOG_WARNING(Service_GSP, "cannot synchronize until GSP shared memory has been created!");
+ return;
+ }
for (int thread_id = 0; thread_id < 0x4; ++thread_id) {
InterruptRelayQueue* interrupt_relay_queue = GetInterruptRelayQueue(thread_id);
u8 next = interrupt_relay_queue->index;