diff options
author | Alon Levy <alevy@redhat.com> | 2011-04-14 17:02:32 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-04-14 17:02:32 +0300 |
commit | 87783fbbfb28a466be777000884046ba6feb56b9 (patch) | |
tree | 966341b102d4e03dc2c9e25806b14cd0e8c0a069 | |
parent | 3ec026c7862348daa7716aeb5a74a2d53912fe85 (diff) |
add FlushCmdRing (move before user)
-rw-r--r-- | display/res.c | 7 | ||||
-rw-r--r-- | display/res.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/display/res.c b/display/res.c index 1b8cf84..429a518 100644 --- a/display/res.c +++ b/display/res.c @@ -213,6 +213,13 @@ static void WaitForCmdRing(PDev* pdev) } } +void FlushCmdRing(PDev* pdev) +{ + DEBUG_PRINT((pdev, 1, "%s: 0x%lx %d %d\n", __FUNCTION__, pdev, pdev->cmd_ring->cons, pdev->cmd_ring->prod)); + WaitForCmdRing(pdev); + DEBUG_PRINT((pdev, 1, "%s: 0x%lx %d %d\n", __FUNCTION__, pdev, pdev->cmd_ring->cons, pdev->cmd_ring->prod)); +} + static void QXLSleep(PDev* pdev, int msec) { LARGE_INTEGER timeout; diff --git a/display/res.h b/display/res.h index ae4ad14..cf0a01d 100644 --- a/display/res.h +++ b/display/res.h @@ -66,6 +66,7 @@ BOOL ResInit(PDev *pdev); void ResDestroy(PDev *pdev); void ResInitGlobals(); void ResDestroyGlobals(); +void FlushCmdRing(PDev* pdev); #ifndef _WIN64 void CheckAndSetSSE2(); #endif |