From 0e1abe3cd01e5ea1fcb38c628d3ef81ecc0dae97 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 19 Sep 2013 12:07:04 +0100 Subject: sna/gen4: Remove long dead code for forced batch emission between CA passes Forcing the batch emission on virtually every glyph eats a lot of CPU time sending very short commands to the GPU, and is totally unnecessary. Reported-by: Arkadiusz Miskiewicz Signed-off-by: Chris Wilson --- src/sna/gen4_render.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/sna/gen4_render.c') diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index 973d6061..b0feb9f7 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -632,9 +632,6 @@ static int gen4_get_rectangles__flush(struct sna *sna, if (!kgem_check_reloc_and_exec(&sna->kgem, 2)) return 0; - if (op->need_magic_ca_pass && sna->render.vbo) - return 0; - if (sna->render.vertex_offset) { gen4_vertex_flush(sna); if (gen4_magic_ca_pass(sna, op)) -- cgit v1.2.3