egl/dri2: add support for optional extensions in dri2_bind_extensions()
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 24 Aug 2016 23:16:01 +0000 (00:16 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:45:24 +0000 (12:45 +0100)
commit38526bd4688a10385df1963458e8c6aded552653
tree8c4fa857d049cf453da4852115dbc6692a00b3af
parentebc68e38491b7bea61e964521d41ba6b2a127546
egl/dri2: add support for optional extensions in dri2_bind_extensions()

Will allow us to reuse the function for optional extensions and fold a
bit of code.

v2: Make dri2_bind_extensions::optional flag an argument to
dri2_bind_extensions (Kristian).

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c