diff options
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index c5ab8b6d..99bd5308 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2160,20 +2160,19 @@ I830BlockHandler(int i, pointer blockData, pointer pTimeout, pointer pReadmask) screen->BlockHandler = I830BlockHandler; if (scrn->vtSema) { - Bool flushed = FALSE; + Bool flush = FALSE; + /* Emit a flush of the rendering cache, or on the 965 and beyond * rendering results may not hit the framebuffer until significantly * later. */ - if (intel->need_mi_flush || intel->batch_used) { - flushed = TRUE; - I830EmitFlush(scrn); - } + if (intel->need_mi_flush || intel->batch_used) + flush = TRUE; /* Flush the batch, so that any rendering is executed in a timely * fashion. */ - intel_batch_flush(scrn, flushed); + intel_batch_flush(scrn, flush); if (intel->have_gem) drmCommandNone(intel->drmSubFD, DRM_I915_GEM_THROTTLE); @@ -2331,6 +2330,8 @@ void i830_init_bufmgr(ScrnInfoPtr scrn) intel->fake_bufmgr_mem->offset, intel->fake_bufmgr_mem->size, NULL); } + list_init(&intel->batch_pixmaps); + list_init(&intel->flush_pixmaps); } Bool i830_crtc_on(xf86CrtcPtr crtc) |