summaryrefslogtreecommitdiff
path: root/src/sna/gen4_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-06 20:41:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-02-06 21:10:35 +0000
commit1467a4ba1a327877026cc76b3eabeb51d1415509 (patch)
tree222fa048c10c0c4a305e378b6e845ffcb49ac8ed /src/sna/gen4_render.c
parentef335a65a9d9f7eb96873201b546c25fd03d090c (diff)
sna: Use the proper sna_picture_is_solid() test
Rather than the specialised routines that assumed pDrawable was non-NULL, which was no longer true after f30be6f743. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen4_render.c')
-rw-r--r--src/sna/gen4_render.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
index 3cb0fbb5..530251c7 100644
--- a/src/sna/gen4_render.c
+++ b/src/sna/gen4_render.c
@@ -2001,14 +2001,6 @@ try_blt(struct sna *sna,
}
static bool
-is_solid(PicturePtr picture)
-{
- return picture->pDrawable->width == 1 &&
- picture->pDrawable->height == 1 &&
- picture->repeat;
-}
-
-static bool
is_gradient(PicturePtr picture)
{
if (picture->pDrawable)
@@ -2032,7 +2024,7 @@ need_upload(PicturePtr p)
static bool
source_fallback(PicturePtr p)
{
- if (is_solid(p))
+ if (sna_picture_is_solid(p, NULL))
return false;
return (has_alphamap(p) ||