summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner.de@gmail.com>2018-02-27 03:05:28 +0100
committerAdam Jackson <ajax@redhat.com>2018-02-27 10:18:06 -0500
commit7a687da24c9d3c9e40ffa426631bf355322d470e (patch)
tree14830cbb2e300e01f8b1d56a78b462ff4abb8cf2 /glamor
parentc326c717c8dbf4a3f0c64a031fbe6030e73ff355 (diff)
glamor: Enable composite acceleration for rgb10 formats. (v2)
Specifically for xrgb2101010 format. Tested on KDE Plasma-5 with XRender based composite acceleration backend. Much smoother and faster. (v2) Dropped argb2101010, because of depth 32 confusion with argb8888, as pointed out by Eric. Thanks! Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Antoine Martin <antoine@nagafix.co.uk>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_render.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c
index d8d1a335b..0417df4e6 100644
--- a/glamor/glamor_render.c
+++ b/glamor/glamor_render.c
@@ -773,6 +773,7 @@ static Bool
glamor_render_format_is_supported(PictFormatShort format)
{
switch (format) {
+ case PICT_x2r10g10b10:
case PICT_a8r8g8b8:
case PICT_x8r8g8b8:
case PICT_a8: