summaryrefslogtreecommitdiff
path: root/src/sna/sna_blt.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-09 22:44:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-10 10:45:54 +0000
commit989615493608525fc252e4e94ac7259cba0741f5 (patch)
treec50393f15296b80afaf03db538943e22c210f0d9 /src/sna/sna_blt.c
parent552e4fbd2c25eb5ab0ae77e11f5f8ba2fdb29daa (diff)
sna: Feed fallback mono trapezoids through the mono rasteriser
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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index 84207302..d70e30e0 100644
--- a/src/sna/sna_blt.c
+++ b/src/sna/sna_blt.c
@@ -631,6 +631,12 @@ sna_rgba_for_color(uint32_t color, int depth)
return color_convert(color, sna_format_for_depth(depth), PICT_a8r8g8b8);
}
+uint32_t
+sna_rgba_to_color(uint32_t rgba, uint32_t format)
+{
+ return color_convert(rgba, PICT_a8r8g8b8, format);
+}
+
static uint32_t
get_pixel(PicturePtr picture)
{