gl-renderer: Ignore INVALID modifier
authorDaniel Stone <daniels@collabora.com>
Tue, 3 Oct 2017 11:58:53 +0000 (12:58 +0100)
committerDaniel Stone <daniels@collabora.com>
Wed, 4 Oct 2017 17:36:06 +0000 (18:36 +0100)
commitb138d7afb3a2a7d51dccb12f08d70c2d86766901
tree6076ab91821f9ed2b81ca940586411ba41282f46
parentcbe7fb0bb5fbca0ffc37cfc7f1c78fc96fad7c1e
gl-renderer: Ignore INVALID modifier

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 modifier _is_ explicitly specified and we don't
have the modifiers extension, then refuse to import the buffer.

Signed-off-by: Daniel Stone <daniels@collabora.com>
libweston/gl-renderer.c