summaryrefslogtreecommitdiff
path: root/src/intel_video.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-17 17:54:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-04-17 17:56:05 +0100
commitb817200371bfe16f44b879a793cf4a75ad17bc5c (patch)
treeec4001dd07530b08e76b7bb12ea5d70c276b217f /src/intel_video.c
parentaf4a6e8cb52ace594934446e6d8a7aaa1945a9b0 (diff)
Don't issue a scanline wait while VT switched
Be paranoid and check that we own the VT before emitting a scanline wait. If we attempt to wait on a fb/pipe that we do not own, we may issue an illegal command and cause a lockup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_video.c')
-rw-r--r--src/intel_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_video.c b/src/intel_video.c
index 25f64836..0834bb23 100644
--- a/src/intel_video.c
+++ b/src/intel_video.c
@@ -1285,7 +1285,7 @@ intel_wait_for_scanline(ScrnInfoPtr scrn, PixmapPtr pixmap,
int y1, y2;
pipe = -1;
- if (pixmap_is_scanout(pixmap))
+ if (scrn->vtSema && pixmap_is_scanout(pixmap))
pipe = intel_crtc_to_pipe(crtc);
if (pipe < 0)
return;