diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-31 20:29:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-31 20:30:40 +0000 |
commit | 8b012de0a1af4ec97c3197af3f1efdcc67bc2118 (patch) | |
tree | 417a25d6cc33929efe856354f2e9904f323132b3 /src/sna/sna_blt.c | |
parent | 0a748fc49d60dc2bc9494f95c4934592b111831a (diff) |
sna/gen5: Always prefer to emit solid fills using the BLT
As the BLT is far, far faster than using a shader.
Improves cairo-demos/chart from 6 to 13 fps.
Reported-by: Michael Larabel <Michael@phoronix.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_blt.c')
-rw-r--r-- | src/sna/sna_blt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index b6749ece..9f510288 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -682,7 +682,8 @@ sna_picture_is_solid(PicturePtr picture, uint32_t *color) if (!is_solid(picture)) return FALSE; - *color = get_solid_color(picture, PICT_a8r8g8b8); + if (color) + *color = get_solid_color(picture, PICT_a8r8g8b8); return TRUE; } |