diff options
| author | 2016-04-23 16:17:03 +0300 | |
|---|---|---|
| committer | 2016-04-23 16:17:03 +0300 | |
| commit | 67c657bf80513c02f4e60e0953c58103e9f80405 (patch) | |
| tree | 9fed13e9d025841696f506214e5ee5cc61bacc21 /src | |
| parent | gsp::Gpu: implement AcquireRight, ReleaseRight functions (diff) | |
| download | yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.gz yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.tar.xz yuzu-67c657bf80513c02f4e60e0953c58103e9f80405.zip | |
return checks if event and memory created
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/gsp_gpu.cpp | 9 |
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) { | |||
| 376 | if (!gpu_right_acquired) { | 376 | if (!gpu_right_acquired) { |
| 377 | return; | 377 | return; |
| 378 | } | 378 | } |
| 379 | 379 | if (nullptr == g_interrupt_event) { | |
| 380 | LOG_WARNING(Service_GSP, "cannot synchronize until GSP event has been created!"); | ||
| 381 | return; | ||
| 382 | } | ||
| 383 | if (nullptr == g_shared_memory) { | ||
| 384 | LOG_WARNING(Service_GSP, "cannot synchronize until GSP shared memory has been created!"); | ||
| 385 | return; | ||
| 386 | } | ||
| 380 | for (int thread_id = 0; thread_id < 0x4; ++thread_id) { | 387 | for (int thread_id = 0; thread_id < 0x4; ++thread_id) { |
| 381 | InterruptRelayQueue* interrupt_relay_queue = GetInterruptRelayQueue(thread_id); | 388 | InterruptRelayQueue* interrupt_relay_queue = GetInterruptRelayQueue(thread_id); |
| 382 | u8 next = interrupt_relay_queue->index; | 389 | u8 next = interrupt_relay_queue->index; |