summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-12-19 11:10:10 +0100
committerMichel Dänzer <michel@daenzer.net>2018-12-20 12:23:54 +0100
commit2e256e8260648619e407b1de70fe43cf32819247 (patch)
treecfedbce55930a40c6538ea4e9d24609dcddcf03c /glamor
parent7e6faa5b3c05e0b7149ee840403885b0b40b5827 (diff)
glamor: Allow HW acceleration for more RENDER formats
As long as the storage format is compatible. v2: * Remove explicit cases for formats handled by the default case. Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/glamor/glamor_render.c b/glamor/glamor_render.c
index d5737018f..7fd932452 100644
--- a/glamor/glamor_render.c
+++ b/glamor/glamor_render.c
@@ -780,15 +780,15 @@ glamor_render_format_is_supported(PicturePtr picture)
storage_format = format_for_depth(picture->pDrawable->depth);
switch (picture->format) {
- case PICT_x2r10g10b10:
+ case PICT_a2r10g10b10:
return storage_format == PICT_x2r10g10b10;
case PICT_a8r8g8b8:
case PICT_x8r8g8b8:
return storage_format == PICT_a8r8g8b8 || storage_format == PICT_x8r8g8b8;
- case PICT_a8:
- return storage_format == PICT_a8;
+ case PICT_a1r5g5b5:
+ return storage_format == PICT_x1r5g5b5;
default:
- return FALSE;
+ return picture->format == storage_format;
}
}