From b6837c21b459a99cb51b0d41906d82604e515dc0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 9 Sep 2011 14:57:09 +0100 Subject: sna/gen5: Prefer BLT for solids And Ironlake also fails to live up to the promise that its GPU is fast enough to run simple programs at memory rates. x11perf -trap300 5x fold improvement. No obvious improvement elsewhere yet. Signed-off-by: Chris Wilson --- src/sna/gen5_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c index c7668b9f..703b3612 100644 --- a/src/sna/gen5_render.c +++ b/src/sna/gen5_render.c @@ -2355,7 +2355,7 @@ gen5_render_fill_boxes(struct sna *sna, return FALSE; } - if (sna->kgem.mode == KGEM_BLT || + if (sna->kgem.mode != KGEM_RENDER || dst->drawable.width > 8192 || dst->drawable.height > 8192 || !gen5_check_dst_format(format)) { @@ -2497,7 +2497,7 @@ gen5_render_fill(struct sna *sna, uint8_t alu, { DBG(("%s(alu=%d, color=%08x)\n", __FUNCTION__, alu, color)); - if (sna->kgem.mode == KGEM_BLT && + if (sna->kgem.mode != KGEM_RENDER && sna_blt_fill(sna, alu, dst_bo, dst->drawable.bitsPerPixel, color, -- cgit v1.2.3