diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-09 14:57:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-09 15:48:30 +0100 |
commit | b6837c21b459a99cb51b0d41906d82604e515dc0 (patch) | |
tree | 55ca64fcd45ea797af58a0f1a35037ed08eaecd0 | |
parent | 27e42b4e1216099f4a6aa7fddeb1e83b87124b6e (diff) |
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 <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/gen5_render.c | 4 |
1 files 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, |