Skip to content

Commit 44bd4c1

Browse files
malayakusraman4
authored andcommitted
ZC v1716 : Bug fix in DVserverKMD wrt mutex
Signed-off-by: Malaya Kumar Parida <malaya.kumar.parida@intel.com>
1 parent c299d8e commit 44bd4c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

DVServerKMD/viogpulite.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,13 +662,15 @@ VOID VioGpuAdapterLite::BlackOutScreen(CURRENT_MODE* pCurrentMod)
662662
}
663663

664664
//FIXME!!! rotation
665+
KeWaitForMutexObject(&m_screen_mutex, Executive, KernelMode, FALSE, NULL);
665666

666667
resid = m_screen[pCurrentMod->DispInfo.TargetId].m_pFrameBuf->GetId();
667668

668669
m_CtrlQueue.TransferToHost2D(resid, 0UL, pCurrentMod->DispInfo.Width, pCurrentMod->DispInfo.Height, 0, 0, NULL);
669670
m_screen[pCurrentMod->DispInfo.TargetId].m_FlushCount++;
670671
m_CtrlQueue.ResFlush(resid, pCurrentMod->DispInfo.Width, pCurrentMod->DispInfo.Height, 0, 0, pCurrentMod->DispInfo.TargetId,
671672
&m_screen[pCurrentMod->DispInfo.TargetId].m_FlushEvent);
673+
KeReleaseMutex(&m_screen_mutex, FALSE);
672674
}
673675
}
674676

0 commit comments

Comments
 (0)