summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorChloe Marcec <dmarcecguzman@gmail.com>2021-01-23 12:12:05 +0100
committerChloe Marcec <dmarcecguzman@gmail.com>2021-01-23 12:12:05 +0100
commit822edff5bd055238b173da4fb4b0a4ea87392751 (patch)
treee99dba7fb910c99f108b40b90ac4d5497d65968d /src/core/hle/service/nvdrv
parentnvdrv: Unregister already registered events (diff)
downloadyuzu-822edff5bd055238b173da4fb4b0a4ea87392751.tar
yuzu-822edff5bd055238b173da4fb4b0a4ea87392751.tar.gz
yuzu-822edff5bd055238b173da4fb4b0a4ea87392751.tar.bz2
yuzu-822edff5bd055238b173da4fb4b0a4ea87392751.tar.lz
yuzu-822edff5bd055238b173da4fb4b0a4ea87392751.tar.xz
yuzu-822edff5bd055238b173da4fb4b0a4ea87392751.tar.zst
yuzu-822edff5bd055238b173da4fb4b0a4ea87392751.zip
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
index 73cd5a889..060599bab 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp
@@ -156,8 +156,7 @@ NvResult nvhost_ctrl::IocCtrlEventRegister(const std::vector<u8>& input, std::ve
}
if (events_interface.registered[event_id]) {
const auto event_state = events_interface.status[event_id];
- if (event_state == EventState::Registered || event_state == EventState::Waiting ||
- event_state == EventState::Busy) {
+ if (event_state != EventState::Free) {
LOG_WARNING(Service_NVDRV, "Event already registered! Unregistering previous event");
events_interface.UnregisterEvent(event_id);
} else {