diff --git a/src/intel_dri.c b/src/intel_dri.c index fa1660ca..a1bac9a8 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -540,6 +540,11 @@ I830DRI2CopyRegion(DrawablePtr drawable, RegionPtr pRegion, 0, 0); FreeScratchGC(gc); + + /* And make sure the WAIT_FOR_EVENT is queued before any + * modesetting/dpms operations on the pipe. + */ + intel_batch_submit(scrn); } #if DRI2INFOREC_VERSION >= 4 diff --git a/src/intel_video.c b/src/intel_video.c index 0be72e20..09782aa5 100644 --- a/src/intel_video.c +++ b/src/intel_video.c @@ -1585,6 +1585,11 @@ I830PutImageTextured(ScrnInfoPtr scrn, intel_get_screen_private(scrn)->needs_flush = TRUE; DamageDamageRegion(drawable, clipBoxes); + /* And make sure the WAIT_FOR_EVENT is queued before any + * modesetting/dpms operations on the pipe. + */ + intel_batch_submit(scrn); + return Success; }