Merge pull request #1646 from LukeUsher/fix-vblank-hang

Fix a deadlock when some LTCG titles attempt to wait for vertical blank
This commit is contained in:
Luke Usher 2019-07-01 18:04:41 +01:00 committed by GitHub
commit d75d08fa57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1209,13 +1209,13 @@ void NV2ADevice::Init()
// Setup the conditions/mutexes
pgraph_init(d);
// Only spawn VBlank thread when LLE is enabled
// Only init PVIDEO when LLE is enabled
if (d->pgraph.opengl_enabled) {
pvideo_init(d);
vblank_thread = std::thread(nv2a_vblank_thread, d);
}
vblank_thread = std::thread(nv2a_vblank_thread, d);
qemu_mutex_init(&d->pfifo.pfifo_lock);
qemu_cond_init(&d->pfifo.puller_cond);
qemu_cond_init(&d->pfifo.pusher_cond);