From dbb585b9d2510efa9f8432bc25842fa14a8e495e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 7 Jul 2013 09:17:58 +0100 Subject: sna/gen4: Remove custom max flush vertices w/a from video path This should now be superseded by using the common w/a. Signed-off-by: Chris Wilson --- src/sna/gen4_render.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 86ce3061..8e039102 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -1418,7 +1418,7 @@ gen4_render_video(struct sna *sna, do { int n; - n = gen4_get_rectangles(sna, &tmp, min(nbox, 16), + n = gen4_get_rectangles(sna, &tmp, nbox, gen4_video_bind_surfaces); assert(n); nbox -= n; @@ -1449,13 +1449,8 @@ gen4_render_video(struct sna *sna, } box++; } while (--n); - gen4_vertex_flush(sna); - if (!nbox) - break; - - /* VUE corruption strikes again */ - OUT_BATCH(MI_FLUSH | MI_INHIBIT_RENDER_CACHE_FLUSH); - } while (1); + } while (nbox); + gen4_vertex_flush(sna); return true; } -- cgit v1.2.3