summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-11-25 11:43:57 +1000
committerDave Airlie <airlied@redhat.com>2009-11-25 11:43:57 +1000
commit3d8dcbc29323a3c644100bec13aa93f024653bd3 (patch)
treebd7483a69f1ed90c00829fbaf781435cf2eb5a49 /src
parent19f1a357944f9d8f4567a2691a68067ec033ccb7 (diff)
kms: flush cs on close screen.
this is needed for server recycle. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_kms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index b9228c11..68a63458 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -543,6 +543,9 @@ static Bool RADEONCloseScreen_KMS(int scrnIndex, ScreenPtr pScreen)
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG,
"RADEONCloseScreen\n");
+ if (info->cs)
+ radeon_cs_flush_indirect(pScrn);
+
if (info->accel_state->exa) {
exaDriverFini(pScreen);
xfree(info->accel_state->exa);