st/dri: implement DRIimage creation from dmabufs with modifiers
authorVarad Gautam <varad.gautam@collabora.com>
Tue, 30 May 2017 11:53:44 +0000 (17:23 +0530)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 9 Jun 2017 13:12:37 +0000 (14:12 +0100)
commit82b3d1fa9a09f60819e789d6f20878d2bc69987b
treeb5197053090b93b04bdd961635f09532f1f9cfbc
parentf61a8ba1688193080ffe7f419fde1605d0f72dc9
st/dri: implement DRIimage creation from dmabufs with modifiers

support importing dmabufs into DRIimage while taking format modifiers
in account, as per DRIimage extension version 15.

v2: initialize winsys modifier to DRM_FORMAT_MOD_INVALID (Daniel Stone)
v3: do not bump DRIimageExtension version. split out winsys changes.

Signed-off-by: Varad Gautam <varad.gautam@collabora.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/state_trackers/dri/dri2.c