summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-07 09:17:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-07 09:17:58 +0100
commitdbb585b9d2510efa9f8432bc25842fa14a8e495e (patch)
tree533dfe9c4023750062b062ab80ef1e75e7b076f3 /src
parent2a59eadf8165bd70780ac16220456c6196ac3ff1 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/gen4_render.c11
1 files 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;
}