pixel-formats: add RGBA bits and type fields
authorPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 27 Sep 2019 11:33:46 +0000 (14:33 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Fri, 4 Oct 2019 09:17:18 +0000 (12:17 +0300)
commitabd3f3c3eafcaf864e3465fbeac329ac058465bb
treee2b268f6368430c55a25169c4691d645d085fabd
parentad8c7448cdfa79f39b15aa575adfdb4d19b21b29
pixel-formats: add RGBA bits and type fields

These fields are necessary when looking for an EGLConfig matching a pixel
format, but the configs do not expose a native visual id. Such happens on the
EGL surfaceless platform where one does not actually care about the exact pixel
format, one just cares it has the right number of bits for each channel and the
right component type.

FP16 formats are coming, so this paves way for them too, allowing them to be
described.

The FIXED/FLOAT terminology comes from EGL_EXT_pixel_format_float.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
libweston/pixel-formats.c
libweston/pixel-formats.h