Add support for X101010 and 2101010 pixel formats to fallback OpenGL rendering
https://bugzilla.gnome.org/show_bug.cgi?id=660188 edit: tweaked the internal format returned by pixel_format_to_gl(); handled 1010102 formats and rebased -- Robert Bragg Reviewed-by: Robert Bragg <robert@linux.intel.com> Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:

committed by
Robert Bragg

parent
8b70468598
commit
c8674ef2bc
@ -167,6 +167,11 @@ _cogl_util_pixel_format_from_masks_real (unsigned long r_mask,
|
||||
{
|
||||
return COGL_PIXEL_FORMAT_ARGB_8888_PRE;
|
||||
}
|
||||
else if ((depth == 30 || depth == 32) &&
|
||||
r_mask == 0x3ff00000 && g_mask == 0xffc00 && b_mask == 0x3ff)
|
||||
{
|
||||
return COGL_PIXEL_FORMAT_ARGB_2101010_PRE;
|
||||
}
|
||||
else if (depth == 16 && bpp == 16 &&
|
||||
r_mask == 0xf800 && g_mask == 0x7e0 && b_mask == 0x1f)
|
||||
{
|
||||
|
Reference in New Issue
Block a user