summaryrefslogtreecommitdiff
path: root/src/radeon_video.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2012-06-06 12:29:37 +0200
committerMichel Dänzer <michel@daenzer.net>2012-06-06 12:29:37 +0200
commit77a056c1725c9c44a328ed324687bdf35144e9e2 (patch)
treebdff807f856094bb2db2f3347df256234df2ba6f /src/radeon_video.c
parent1d9f1eb7e65c57c52759ccbfa51e8bdd5a10acac (diff)
Don't page-flip or wait on a CRTC while we're VT-switched away.
We don't know what the CRTC state is. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_video.c')
-rw-r--r--src/radeon_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c
index d6027358..01703a0c 100644
--- a/src/radeon_video.c
+++ b/src/radeon_video.c
@@ -153,6 +153,9 @@ radeon_pick_best_crtc(ScrnInfoPtr pScrn,
RROutputPtr primary_output = NULL;
xf86CrtcPtr best_crtc = NULL, primary_crtc = NULL;
+ if (!pScrn->vtSema)
+ return NULL;
+
box.x1 = x1;
box.x2 = x2;
box.y1 = y1;