From cd475bad23c02130d11c49882c11261c9f0d4ef1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 7 Dec 2009 11:09:14 +0000 Subject: batch: Ensure we send a MI_FLUSH in the block handler for TFP This should restore the previous level of synchronisation between textures and pixmaps, but *does not* guarantee that a texture will be flushed before use. tfp should be fixed so that the ddx can submit the batch if required to flush the pixmap. A side-effect of this patch is to rename intel_batch_flush() to intel_batch_submit() to reduce the confusion of executing a batch buffer with that of emitting a MI_FLUSH. Should fix the remaining rendering corruption involving tfp [inc compiz]: Bug 25431 [i915 bisected] piglit/texturing_tfp regressed http://bugs.freedesktop.org/show_bug.cgi?id=25431 Bug 25481 Wrong cursor format and cursor blink rate with compiz enabled http://bugs.freedesktop.org/show_bug.cgi?id=25481 Signed-off-by: Chris Wilson --- src/i965_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/i965_video.c') diff --git a/src/i965_video.c b/src/i965_video.c index cc9b309b..e0a8215e 100644 --- a/src/i965_video.c +++ b/src/i965_video.c @@ -1213,7 +1213,7 @@ I965DisplayVideoTextured(ScrnInfoPtr scrn, if (drm_intel_bufmgr_check_aperture_space(bo_table, ARRAY_SIZE(bo_table)) < 0) { - intel_batch_flush(scrn); + intel_batch_submit(scrn); } intel_batch_start_atomic(scrn, 100); -- cgit v1.2.3