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>
This commit is contained in:
parent
7e6faa5b3c
commit
2e256e8260
|
@ -780,15 +780,15 @@ glamor_render_format_is_supported(PicturePtr picture)
|
||||||
storage_format = format_for_depth(picture->pDrawable->depth);
|
storage_format = format_for_depth(picture->pDrawable->depth);
|
||||||
|
|
||||||
switch (picture->format) {
|
switch (picture->format) {
|
||||||
case PICT_x2r10g10b10:
|
case PICT_a2r10g10b10:
|
||||||
return storage_format == PICT_x2r10g10b10;
|
return storage_format == PICT_x2r10g10b10;
|
||||||
case PICT_a8r8g8b8:
|
case PICT_a8r8g8b8:
|
||||||
case PICT_x8r8g8b8:
|
case PICT_x8r8g8b8:
|
||||||
return storage_format == PICT_a8r8g8b8 || storage_format == PICT_x8r8g8b8;
|
return storage_format == PICT_a8r8g8b8 || storage_format == PICT_x8r8g8b8;
|
||||||
case PICT_a8:
|
case PICT_a1r5g5b5:
|
||||||
return storage_format == PICT_a8;
|
return storage_format == PICT_x1r5g5b5;
|
||||||
default:
|
default:
|
||||||
return FALSE;
|
return picture->format == storage_format;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user