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>
This commit is contained in:
Mario Kleiner 2018-02-27 03:05:28 +01:00 committed by Adam Jackson
parent c326c717c8
commit 7a687da24c
1 changed files with 1 additions and 0 deletions

View File

@ -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: