Fwd: [PATCH weston 01/68] libweston: Add pixel-format helpers

Daniel Stone daniel at fooishbar.org
Fri Dec 9 21:30:32 UTC 2016


Hi,

On 9 December 2016 at 20:37, Armin Krezović <krezovic.armin at gmail.com> wrote:
> On 09.12.2016 20:57, Daniel Stone wrote:
>>  libweston/pixel-formats.c | 398 ++++++++++++++++++++++++++++++++++++++++++++++
>>  libweston/pixel-formats.h | 112 +++++++++++++
>
> Where are corresponding build system modifications?

Missing, apparently ... :\

>> +#include <EGL/egl.h>
>> +#include <EGL/eglext.h>
>> +#include <GLES2/gl2.h>
>> +#include <GLES2/gl2ext.h>
>
> Is it supposed to work without EGL/GLESv2 enabled?

Not really, no; note that the DRM backend has a hard dependency on GBM
and the Wayland backend has a hard dependency on libwayland-egl, so
this only really affects people building the X11/headless backends
only with no EGL. I suppose we could do a giant #ifdef tree, or just
pull all the tokens we use into weston-egl-ext.h and use that. Do you
have any preferences?

>> +/**
>> + * Table of DRM formats supported by Weston; RGB, ARGB and YUV formats are
>> + * supported. Indexed/greyscale formats, and formats not containing complete
>> + * colour channels, are not supported.
>> + */
>
> I expected something using this immediately. I suggest you squash it with something
> else that uses this.

It could be squashed with 'Store format in drm_fb', but as the
DRM-specific parts of the series were getting very little review, and
it can also be useful for gl-renderer's SHM uploads in particular, I
didn't want to muddle it in with the rest of the series. Depending on
how that goes (whether I get to porting gl-renderer, if earlier parts
of the series get reviewed so we can merge this, etc), it can be
squashed into its first user.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 887 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20161209/d96b44f5/attachment.sig>


More information about the wayland-devel mailing list