st/dri: enable DRIimage modifier queries
authorVarad Gautam <varad.gautam@collabora.com>
Tue, 30 May 2017 11:53:42 +0000 (17:23 +0530)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 9 Jun 2017 13:12:37 +0000 (14:12 +0100)
commitd33fe8b84e45308a26068d3f015e033de93315b1
treeef29446fd3060fdf8a1f4dff0e1cc2944a170e90
parent3f8513172ff65ce93a0f8a04c59afbe6b02d60d8
st/dri: enable DRIimage modifier queries

return the modifier selected by the driver when creating this image.

v2: since we can use winsys_handle->modifier to serve these, remove
    DRIimage->modifier from v1.
    use DRM_API_HANDLE_TYPE_KMS instead of DRM_API_HANDLE_TYPE_FD to avoid
    ownership transfer. (Lucas)

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