Re: [PATCH weston] gl-renderer: Ignore INVALID modifier

2017-11-16 Thread Arnaud Vrac
Hi all, this patch prevents weston from importing dmabuf buffer when the EGL_EXT_image_dma_buf_import_modifiers extension is not supported. In this case, the import will either fail in import_simple_dmabuf if the modifier is zero, or in gl_renderer_import_dmabuf is the modifier is DRM_FORMAT_MOD_I

Re: [PATCH weston] gl-renderer: Ignore INVALID modifier

2017-10-05 Thread Daniel Stone
On 5 October 2017 at 08:15, Pekka Paalanen wrote: > On Wed, 4 Oct 2017 18:35:45 +0100 > Daniel Stone wrote: >> If the user has passed an INVALID modifier, it's because there is no >> applicable modifier, and the buffer layout should be determined by a >> magic side-channel call (e.g. bo_get_tili

Re: [PATCH weston] gl-renderer: Ignore INVALID modifier

2017-10-05 Thread Pekka Paalanen
On Wed, 4 Oct 2017 18:35:45 +0100 Daniel Stone wrote: > If the user has passed an INVALID modifier, it's because there is no > applicable modifier, and the buffer layout should be determined by a > magic side-channel call (e.g. bo_get_tiling). If the modifier is > INVALID, don't try to pass it t

[PATCH weston] gl-renderer: Ignore INVALID modifier

2017-10-04 Thread Daniel Stone
If the user has passed an INVALID modifier, it's because there is no applicable modifier, and the buffer layout should be determined by a magic side-channel call (e.g. bo_get_tiling). If the modifier is INVALID, don't try to pass it through to EGL, but just drop it. On the other hand, if a modifie